00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef __HOM_ToggleParmTemplate_h__
00017 #define __HOM_ToggleParmTemplate_h__
00018
00019 #include "HOM_API.h"
00020 #include "HOM_ParmTemplate.h"
00021
00022 SWIGOUT(%feature("notabstract") HOM_ToggleParmTemplate;)
00023 SWIGOUT(%rename(ToggleParmTemplate) HOM_ToggleParmTemplate;)
00024
00025 class HOM_API HOM_ToggleParmTemplate : virtual public HOM_ParmTemplate
00026 {
00027 public:
00028 #ifdef SWIG
00029 #ifdef SWIGPYTHON
00030 %feature("autodoc",
00031 "__init__(self, name, label, default_value=False, disable_when=None,"
00032 " is_hidden=False, join_with_next=False, help=None, tags={})")
00033 HOM_ToggleParmTemplate;
00034 #endif
00035 %extend {
00036 %kwargs HOM_ToggleParmTemplate;
00037 HOM_ToggleParmTemplate(
00038 const char *name,
00039 const char *label,
00040 bool default_value = false,
00041 const char *disable_when = NULL,
00042 bool is_hidden = false,
00043 bool join_with_next = false,
00044 const char *help = NULL,
00045 const std::map<std::string, std::string> &tags =
00046 HOM_StdMapStringString())
00047 throw(HOM_OperationFailed, HOM_TypeError, HOM_Error)
00048 {
00049 return HOM().newToggleParmTemplate(
00050 name, label, default_value, disable_when, is_hidden,
00051 join_with_next, help, tags);
00052 }
00053 };
00054 #else
00055 HOM_ToggleParmTemplate()
00056 { HOM_CONSTRUCT_OBJECT(this) }
00057
00058 HOM_ToggleParmTemplate(const HOM_ToggleParmTemplate &parm_template)
00059 : HOM_ParmTemplate(parm_template)
00060 { HOM_CONSTRUCT_OBJECT(this) }
00061 #endif
00062
00063 virtual ~HOM_ToggleParmTemplate()
00064 { HOM_DESTRUCT_OBJECT(this) }
00065
00066
00067
00068 SWIGOUT(virtual std::string __repr__() throw(HOM_Error);)
00069
00070 virtual bool defaultValue() = 0;
00071 };
00072
00073 #endif