HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_AgentMetadata.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  */
7 
8 #ifndef __HOM_AgentMetadata_h__
9 #define __HOM_AgentMetadata_h__
10 
11 #include "HOM_API.h"
12 #include "HOM_Module.h"
13 #include "HOM_PtrOrNull.h"
14 
15 SWIGOUT(%rename(AgentMetadata) HOM_AgentMetadata;)
16 // Force SWIG to output an __init__ method even though it determines this
17 // class is abstract.
18 SWIGOUT(%feature("notabstract") HOM_AgentMetadata;)
19 
21 {
22 public:
23 #ifdef SWIG
24 %extend
25 {
26  HOM_AgentMetadata(const char *path, bool keep_external_ref = true)
27  { return HOM().newAgentMetadata(path, keep_external_ref); }
28 
30  const std::map<std::string, hboost::any> &data)
31  {
32  return HOM().newAgentMetadata(data);
33  }
34 }
35 #else
37  { HOM_CONSTRUCT_OBJECT(this) }
38 #endif
39 
41  { HOM_DESTRUCT_OBJECT(this) }
42 
43  virtual bool
44  operator==(HOM_PtrOrNull<HOM_AgentMetadata> metadata) const = 0;
45 
47  { return !operator==(metadata); }
48 
49  virtual int __hash__() const = 0;
50  virtual std::string __repr__() const = 0;
51 
52  SWIGOUT(%newobject freeze;)
53  virtual HOM_AgentMetadata *freeze() const = 0;
54  virtual bool isReadOnly() const = 0;
55 
56  virtual std::string asJSON() const = 0;
57 
58  SWIGOUT(%kwargs fileName;)
59  virtual std::string fileName(bool expanded = false) const = 0;
60 
61  virtual std::map<std::string, hboost::any> data() const = 0;
62  virtual void setData(const std::map<std::string, hboost::any> &data) = 0;
63 };
64 
65 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1303
GLboolean * data
Definition: glcorearb.h:131
virtual ~HOM_AgentMetadata()
GLsizei const GLchar *const * string
Definition: glcorearb.h:814
GLsizei const GLchar *const * path
Definition: glcorearb.h:3341
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:349
virtual int __hash__() const =0
virtual HOM_AgentShapeLibrary * freeze(bool keep_external_ref=false) const =0
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1302
virtual std::string fileName(bool expanded=false) const =0
bool operator!=(HOM_PtrOrNull< HOM_AgentMetadata > metadata) const
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
virtual HOM_AgentMetadata * newAgentMetadata(const char *path, bool keep_external_ref=true)=0
HOM_API HOM_Module & HOM()
bool operator==(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Equality operator, does exact floating point comparisons.
Definition: Mat3.h:542
Definition: format.h:895