HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_HDASection.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_HDASection_h__
10 #define __HOM_HDASection_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_Defines.h"
14 #include "HOM_Errors.h"
15 #include "HOM_EnumValue.h"
16 #include "HOM_Module.h"
17 #include "HOM_IterableList.h"
18 #include "HOM_PtrOrNull.h"
19 #include <SYS/SYS_Types.h>
20 #include <string>
21 
22 class HOM_HDADefinition;
23 
24 SWIGOUT(%rename(HDASection) HOM_HDASection;)
25 
27 {
28 public:
30  { HOM_CONSTRUCT_OBJECT(this) }
32  { HOM_CONSTRUCT_OBJECT(this) }
33  virtual ~HOM_HDASection()
34  { HOM_DESTRUCT_OBJECT(this) }
35 
36  virtual bool operator==(HOM_PtrOrNull<HOM_HDASection> hda_section) = 0;
37  virtual bool operator!=(HOM_PtrOrNull<HOM_HDASection> hda_section) = 0;
38 
39  virtual int __hash__() = 0;
40  virtual std::string __repr__() = 0;
41 
42  SWIGOUT(%newobject definition;)
43  virtual HOM_HDADefinition *definition() = 0;
44 
45  virtual std::string name() = 0;
46 
47  SWIGOUT(%kwargs contents);
48  virtual std::string contents(
49  HOM_EnumValue &compression_type=HOM_compressionType::NoCompression) = 0;
50  SWIGOUT(%kwargs binaryContents);
51  virtual HOM_BinaryString binaryContents(
52  HOM_EnumValue &compression_type=HOM_compressionType::NoCompression) = 0;
53 
54  // Swig does not allow keyword arguments for overloaded functions, so
55  // setContents is wrapped in houpythonportion.py to enable keyword
56  // arguments. If you want to change the signature of setContents, you must
57  // also edit houpythonportion.py.
58  virtual void setContents(
59  const std::string &contents,
60  HOM_EnumValue &compression_type=HOM_compressionType::NoCompression) = 0;
61  virtual void setContents(
62  const HOM_BinaryString &contents,
63  HOM_EnumValue &compression_type=HOM_compressionType::NoCompression) = 0;
64 
65  virtual int size() = 0;
66  virtual int64 modificationTime() = 0;
67  virtual void destroy() = 0;
68 };
69 
70 #endif
71 
#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
virtual void destroy()=0
#define HOM_API
Definition: HOM_API.h:13
virtual int modificationTime()=0
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1290
bool operator!=(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Inequality operator, does exact floating point comparisons.
Definition: Mat3.h:556
long long int64
Definition: SYS_Types.h:116
GLuint const GLchar * name
Definition: glcorearb.h:786
GLsizeiptr size
Definition: glcorearb.h:664
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
virtual ~HOM_HDASection()
bool operator==(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Equality operator, does exact floating point comparisons.
Definition: Mat3.h:542
virtual int __hash__()=0
HOM_HDASection(const HOM_HDASection &)