HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_FolderSetParmTemplate.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_FolderSetParmTemplate_h__
10 #define __HOM_FolderSetParmTemplate_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_ParmTemplate.h"
14 
15 SWIGOUT(%feature("notabstract") HOM_FolderSetParmTemplate;)
16 SWIGOUT(%rename(FolderSetParmTemplate) HOM_FolderSetParmTemplate;)
17 
19 {
20 public:
21 #ifdef SWIG
22 %extend {
24  HOM_FolderSetParmTemplate(
25  const char *name,
26  const std::vector<std::string> &folder_names,
27  HOM_EnumValue &folder_type = HOM_folderType::Tabs,
28  const std::map<std::string, std::string> &tags =
30  {
32  name, folder_names, folder_type, tags);
33  }
34 };
35 #else
37  { HOM_CONSTRUCT_OBJECT(this) }
38 
40  : HOM_ParmTemplate(parm_template)
41  { HOM_CONSTRUCT_OBJECT(this) }
42 #endif
43 
45  { HOM_DESTRUCT_OBJECT(this) }
46 
47  // Let swig think we're overriding __repr__ for this class so it doesn't
48  // provide its own __repr__.
49  SWIGOUT(virtual std::string __repr__();)
50 
51  virtual std::vector<std::string> folderNames() = 0;
52  virtual void setFolderNames(
53  const std::vector<std::string> &folder_names) = 0;
54 
55  virtual HOM_EnumValue &folderType() = 0;
56  virtual void setFolderType(HOM_EnumValue &folder_type) = 0;
57 
58  // This method is deprecated in favour of folderType().
60  { return folderType(); }
61 };
62 
63 #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
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1290
GLuint const GLchar * name
Definition: glcorearb.h:786
virtual HOM_FolderSetParmTemplate * newFolderSetParmTemplate(const char *name, const std::vector< std::string > &folder_names, HOM_EnumValue &folder_type, const std::map< std::string, std::string > &tags)=0
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
HOM_API HOM_Module & HOM()
std::map< std::string, std::string > HOM_StdMapStringString
Definition: HOM_Module.h:1299
HOM_FolderSetParmTemplate(const HOM_FolderSetParmTemplate &parm_template)