GATE
|
Public Types | |
enum | OptionTypeEnum { OptionType_Switch = GATE_APP_OPTION_TYPE_SWITCH , OptionType_Boolean = GATE_APP_OPTION_TYPE_BOOL , OptionType_Int32 = GATE_APP_OPTION_TYPE_I32 , OptionType_Int64 = GATE_APP_OPTION_TYPE_I64 , OptionType_Real = GATE_APP_OPTION_TYPE_REAL , OptionType_String = GATE_APP_OPTION_TYPE_STRING , OptionType_StringArray = GATE_APP_OPTION_TYPE_ARRAY } |
Public Types inherited from gate::SafeBoolBase< AppOptionDef > | |
typedef void(SafeBoolBase::* | bool_type) () const |
Public Member Functions | |
AppOptionDef (String const &key, OptionTypeEnum type, void *targetValue, String const alias=String(), String const &optionName=String(), String const &description=String()) | |
AppOptionDef (gate_app_option_t const *src) | |
AppOptionDef (AppOptionDef const &src) | |
AppOptionDef & | operator= (AppOptionDef const &src) |
String | Key () const |
String | Alias () const |
String | OptionName () const |
String | Description () const |
OptionTypeEnum | Type () const noexcept |
bool_t | getBool () const noexcept |
int32_t | getInt32 () const noexcept |
int64_t | getInt64 () const noexcept |
real64_t | getReal () const noexcept |
String | getString () const |
Array< String > | getStringArray () const |
gate_app_option_t * | c_impl () noexcept |
gate_app_option_t const * | c_impl () const noexcept |
bool | operator! () const noexcept |
Public Member Functions inherited from gate::SafeBoolBase< AppOptionDef > | |
operator bool_type () const | |
Static Public Member Functions | |
static AppOptionDef | createSwitch (String const &key, String const &alias=String(), String const &name=String(), String const &description=String()) |
static AppOptionDef | createBool (String const &key, String const &alias=String(), bool_t default_value=false, String const &name=String(), String const &description=String()) |
static AppOptionDef | createInt32 (String const &key, String const &alias=String(), int32_t default_value=0, String const &name=String(), String const &description=String()) |
static AppOptionDef | createInt64 (String const &key, String const &alias=String(), int64_t default_value=0, String const &name=String(), String const &description=String()) |
static AppOptionDef | createReal64 (String const &key, String const &alias=String(), real64_t default_value=0.0, String const &name=String(), String const &description=String()) |
static AppOptionDef | createString (String const &key, String const &alias=String(), String const &default_value=String(), String const &name=String(), String const &description=String()) |
static AppOptionDef | createArray (String const &key, String const &alias=String(), String const &name=String(), String const &description=String()) |