HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_LabelParmTemplate.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_LabelParmTemplate_h__
10 #define __HOM_LabelParmTemplate_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_ParmTemplate.h"
14 
15 SWIGOUT(%feature("notabstract") HOM_LabelParmTemplate;)
16 SWIGOUT(%rename(LabelParmTemplate) HOM_LabelParmTemplate;)
17 
19 {
20 public:
21 #ifdef SWIG
22 %extend {
23  %kwargs HOM_LabelParmTemplate;
24  HOM_LabelParmTemplate(
25  const char *name,
26  const char *label,
27  const std::vector<std::string> &column_labels =
28  std::vector<std::string>(),
29  HOM_EnumValue &label_parm_type = HOM_labelParmType::Label,
30  bool is_hidden = false,
31  bool is_label_hidden = false,
32  bool join_with_next = false,
33  const char *help = NULL,
34  const std::map<std::string, std::string> &tags =
36  const std::map<HOM_EnumValue *, std::string> &conditionals =
38  {
39  return HOM().newLabelParmTemplate(name, label, column_labels,
40  label_parm_type, is_hidden, is_label_hidden, join_with_next, help,
41  tags, conditionals);
42  }
43 };
44 #else
46  { HOM_CONSTRUCT_OBJECT(this) }
47 
49  : HOM_ParmTemplate(parm_template)
50  { HOM_CONSTRUCT_OBJECT(this) }
51 #endif
52 
54  { HOM_DESTRUCT_OBJECT(this) }
55 
56  // Let swig think we're overriding __repr__ for this class so it doesn't
57  // provide its own __repr__.
58  SWIGOUT(virtual std::string __repr__();)
59 
60  virtual HOM_EnumValue &labelParmType() = 0;
61  virtual void setLabelParmType(HOM_EnumValue &label_parm_type) = 0;
62 
63  virtual std::vector<std::string> columnLabels() = 0;
64  virtual void setColumnLabels(const std::vector<std::string> &column_labels) = 0;
65 };
66 
67 #endif
#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
HOM_LabelParmTemplate(const HOM_LabelParmTemplate &parm_template)
std::string help(const App *app, const Error &e)
Printout the full help string on error (if this fn is set, the old default for CLI11) ...
Definition: CLI11.h:8978
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1302
GLuint const GLchar * name
Definition: glcorearb.h:786
virtual HOM_LabelParmTemplate * newLabelParmTemplate(const char *name, const char *label, const std::vector< std::string > &column_labels, HOM_EnumValue &label_parm_type, bool is_hidden, bool is_label_hidden, bool join_with_next, const char *help, const std::map< std::string, std::string > &tags, const std::map< HOM_EnumValue *, std::string > &conditionals)=0
std::map< HOM_EnumValue *, std::string > HOM_StdMapEnumString
Definition: HOM_Module.h:1312
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:1311