HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_ScriptEvalContext.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 
10 #ifndef __HOM_ScriptEvalContext_h__
11 #define __HOM_ScriptEvalContext_h__
12 
13 #include "HOM_API.h"
14 #include "HOM_Module.h"
15 
16 #include <string>
17 
18 
19 SWIGOUT(%rename(ScriptEvalContext) HOM_ScriptEvalContext;)
20 SWIGOUT(%feature("notabstract") HOM_ScriptEvalContext;)
21 
22 
24 {
25 public:
26 #ifdef SWIG
27 %extend {
29  { return HOM().newScriptEvalContext(node); }
31  { return HOM().newScriptEvalContext(parm); }
32 };
33 #else
35  { HOM_CONSTRUCT_OBJECT(this) }
36 #endif
37 
39  { HOM_DESTRUCT_OBJECT(this) }
40 
41  // Let swig know we're overriding __repr__ for this class so it doesn't
42  // provide its own __repr__.
43  virtual std::string __repr__() = 0;
44 
45  SWIGOUT(%newobject node;)
46  virtual HOM_Node *node() = 0;
47 
48  SWIGOUT(%newobject parm;)
49  virtual HOM_Parm *parm() = 0;
50 
51  virtual HOM_ScriptEvalContext *__enter__() = 0;
52 
53  SWIGOUT(%ignore opaqueExit;)
54  virtual void opaqueExit() = 0;
55 
56 #ifdef SWIG
57 %extend
58 {
59  // We can ignore the type, value, and traceback Python objects.
60  SWIGOUT(virtual void __exit__(
61  InterpreterObject type, InterpreterObject value,
62  InterpreterObject traceback)
63  { self->opaqueExit(); };)
64 }
65 #endif
66 
67 };
68 
69 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1291
GLsizei const GLchar *const * string
Definition: glcorearb.h:814
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:352
#define HOM_API
Definition: HOM_API.h:13
void ignore(T const &) VULKAN_HPP_NOEXCEPT
Definition: vulkan.hpp:6508
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1290
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
Definition: core.h:1131
HOM_API HOM_Module & HOM()
type
Definition: core.h:1059
virtual HOM_ScriptEvalContext * newScriptEvalContext(HOM_Node &node)=0