HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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  bool is_hidden = false,
30  bool is_label_hidden = false,
31  bool join_with_next = false,
32  const char *help = NULL,
33  const std::map<std::string, std::string> &tags =
35  const std::map<HOM_EnumValue, std::string> &conditionals =
37  {
38  return HOM().newLabelParmTemplate(name, label, column_labels,
39  is_hidden, is_label_hidden, join_with_next, help, tags,
40  conditionals);
41  }
42 };
43 #else
45  { HOM_CONSTRUCT_OBJECT(this) }
46 
48  : HOM_ParmTemplate(parm_template)
49  { HOM_CONSTRUCT_OBJECT(this) }
50 #endif
51 
53  { HOM_DESTRUCT_OBJECT(this) }
54 
55  // Let swig think we're overriding __repr__ for this class so it doesn't
56  // provide its own __repr__.
57  SWIGOUT(virtual std::string __repr__();)
58 
59  virtual std::vector<std::string> columnLabels() = 0;
60  virtual void setColumnLabels(const std::vector<std::string> &column_labels) = 0;
61 };
62 
63 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:973
GLuint GLsizei const GLchar * label
Definition: glcorearb.h:2544
GLsizei const GLchar *const * string
Definition: glcorearb.h:813
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
HOM_LabelParmTemplate(const HOM_LabelParmTemplate &parm_template)
virtual HOM_LabelParmTemplate * newLabelParmTemplate(const char *name, const char *label, const std::vector< std::string > &column_labels, 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
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:972
GLuint const GLchar * name
Definition: glcorearb.h:785
std::map< HOM_EnumValue, std::string > HOM_StdMapEnumString
Definition: HOM_Module.h:979
virtual std::string __repr__()=0
HOM_API HOM_Module & HOM()
std::map< std::string, std::string > HOM_StdMapStringString
Definition: HOM_Module.h:978