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 <string>
20 class HOM_HDADefinition;
21 
22 SWIGOUT(%rename(HDASection) HOM_HDASection;)
23 
25 {
26 public:
28  { HOM_CONSTRUCT_OBJECT(this) }
30  { HOM_CONSTRUCT_OBJECT(this) }
31  virtual ~HOM_HDASection()
32  { HOM_DESTRUCT_OBJECT(this) }
33 
34  virtual bool operator==(HOM_PtrOrNull<HOM_HDASection> hda_section) = 0;
35  virtual bool operator!=(HOM_PtrOrNull<HOM_HDASection> hda_section) = 0;
36 
37  virtual int __hash__() = 0;
38  virtual std::string __repr__() = 0;
39 
40  SWIGOUT(%newobject definition;)
41  virtual HOM_HDADefinition *definition() = 0;
42 
43  virtual std::string name() = 0;
44 
45 #if defined(USE_PYTHON3)
46  SWIGOUT(%kwargs contents);
47  virtual std::string contents(
48  HOM_EnumValue &compression_type=HOM_compressionType::NoCompression) = 0;
49  SWIGOUT(%kwargs binaryContents);
50  virtual HOM_BinaryString binaryContents(
51  HOM_EnumValue &compression_type=HOM_compressionType::NoCompression) = 0;
52 
53  SWIGOUT(%kwargs setContents);
54  virtual void setContents(
55  const std::string &contents,
56  HOM_EnumValue &compression_type=HOM_compressionType::NoCompression) = 0;
57  virtual void setContents(
58  const HOM_BinaryString &contents,
59  HOM_EnumValue &compression_type=HOM_compressionType::NoCompression) = 0;
60 #else
61  SWIGOUT(%kwargs contents);
62  virtual HOM_BinaryString contents(
63  HOM_EnumValue &compression_type=HOM_compressionType::NoCompression) = 0;
64  SWIGOUT(%kwargs setContents);
65  virtual void setContents(
66  const HOM_BinaryString &contents,
67  HOM_EnumValue &compression_type=HOM_compressionType::NoCompression) = 0;
68 #endif
69  virtual int size() = 0;
70  virtual int modificationTime() = 0;
71  virtual void destroy() = 0;
72 };
73 
74 #endif
75 
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1210
GLsizeiptr size
Definition: glew.h:1681
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
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:1209
bool operator!=(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Inequality operator, does exact floating point comparisons.
Definition: Mat3.h:563
GLsizei const GLchar *const * string
Definition: glew.h:1844
virtual ~HOM_HDASection()
bool operator==(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Equality operator, does exact floating point comparisons.
Definition: Mat3.h:549
virtual int __hash__()=0
HOM_HDASection(const HOM_HDASection &)