HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_HDAModule.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  * COMMENTS:
7  */
8 
9 #ifndef __HOM_HDAModule_h__
10 #define __HOM_HDAModule_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_Defines.h"
14 #include "HOM_Errors.h"
15 #include "HOM_Module.h"
16 
18 
20 
21 SWIGOUT(%rename(HDAModule) HOM_HDAModule;)
22 
24 {
25 public:
27  { HOM_CONSTRUCT_OBJECT(this) }
29  { HOM_CONSTRUCT_OBJECT(this) }
30  virtual ~HOM_HDAModule()
31  { HOM_DESTRUCT_OBJECT(this) }
32 
33  virtual std::string __repr__() = 0;
34 
35  // Helper method for hou.hda.reloadHDAModule().
36  virtual void _reload() = 0;
37 
38 #if defined(SWIG) && defined(SWIGPYTHON)
39 %extend
40 {
41  // __getattr__ will look up the attribute name in the evaluation
42  // context's dictionaries and return the corresponding object if
43  // it exists. This way, the HDAModule object can give a dictionary
44  // the behaviour of an object.
45  InterpreterObject __getattr__(const char *name)
46  {
47  return HOMgetattr<HOM_HDAModule>(self, name);
48  }
49 }
50 
51 #endif
52 
53  // This method is not wrapped by swig. It is overridden by the HOMF
54  // subclass to provide access to the Python evaluation context containing
55  // the module's contents. It is ok for this method to return null.
56  SWIGOUT(%ignore getEvaluationContext;)
57  virtual PY_EvaluationContext *getEvaluationContext() = 0;
58 };
59 
60 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1211
GLuint const GLchar * name
Definition: glew.h:1814
OIIO_API bool rename(string_view from, string_view to, std::string &err)
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:349
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1210
HOM_HDAModule(const HOM_HDAModule &module)
Definition: HOM_HDAModule.h:28
GLsizei const GLchar *const * string
Definition: glew.h:1844
virtual ~HOM_HDAModule()
Definition: HOM_HDAModule.h:30