HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_UndosDisabler.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  * Class used to disable undos for a Python code block
8  */
9 
10 #ifndef __HOM_UndosDisabler_h__
11 #define __HOM_UndosDisabler_h__
12 
13 #include "HOM_API.h"
14 #include "HOM_Errors.h"
15 #include "HOM_Module.h"
16 
17 
18 SWIGOUT(%rename(UndosDisabler) HOM_UndosDisabler;)
19 
20 
22 {
23 public:
24 
26  { HOM_CONSTRUCT_OBJECT(this) }
28  { HOM_CONSTRUCT_OBJECT(this) }
30  { HOM_DESTRUCT_OBJECT(this) }
31 
32  // Let swig know we're overriding __repr__ for this class so it doesn't
33  // provide its own __repr__.
34  virtual std::string __repr__() = 0;
35 
36  virtual HOM_UndosDisabler *__enter__() = 0;
37 
38  SWIGOUT(%ignore opaqueExit;)
39  virtual void opaqueExit() = 0;
40 
41 #ifdef SWIG
42 %extend
43 {
44  // We can ignore the type, value, and traceback Python objects.
45  SWIGOUT(virtual void __exit__(
46  InterpreterObject type, InterpreterObject value,
47  InterpreterObject traceback)
48  { self->opaqueExit(); };)
49 }
50 #endif
51 
52 };
53 
54 #endif
virtual void opaqueExit()=0
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1056
HOM_UndosDisabler(const HOM_UndosDisabler &)
virtual ~HOM_UndosDisabler()
GLsizei const GLchar *const * string
Definition: glcorearb.h:813
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:344
virtual HOM_UndosGroup * __enter__()=0
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1055
GLsizei const GLfloat * value
Definition: glcorearb.h:823
GLint GLint GLsizei GLint GLenum GLenum type
Definition: glcorearb.h:107