HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_UndosGroup.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 create an undo block
8  */
9 
10 #ifndef __HOM_UndosGroup_h__
11 #define __HOM_UndosGroup_h__
12 
13 #include "HOM_API.h"
14 #include "HOM_Errors.h"
15 #include "HOM_Module.h"
16 
17 
18 SWIGOUT(%rename(UndosGroup) HOM_UndosGroup;)
19 
20 
22 {
23 public:
24 
26  { HOM_CONSTRUCT_OBJECT(this) }
28  { HOM_CONSTRUCT_OBJECT(this) }
29  virtual ~HOM_UndosGroup()
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 std::string label() = 0;
37 
38  virtual HOM_UndosGroup *__enter__() = 0;
39 
41  virtual void opaqueExit() = 0;
42 
43 #ifdef SWIG
44 %extend
45 {
46  // We can ignore the type, value, and traceback Python objects.
47  SWIGOUT(virtual void __exit__(
48  InterpreterObject type, InterpreterObject value,
49  InterpreterObject traceback)
50  { self->opaqueExit(); };)
51 }
52 #endif
53 
54 };
55 
56 #endif
virtual void opaqueExit()=0
HOM_UndosGroup(const HOM_UndosGroup &)
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1303
GLuint GLsizei const GLchar * label
Definition: glcorearb.h:2545
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:349
virtual HOM_UndosGroup * __enter__()=0
#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:1302
virtual ~HOM_UndosGroup()
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
Definition: core.h:1131
type
Definition: core.h:1059