71 OptionType_Invalid = 0,
106 static Options* Create(
string const& _configPath,
string const& _userPath,
string const& _commandLine );
118 static bool Destroy();
145 bool AddOptionBool(
string const& _name,
bool const _default );
155 bool AddOptionInt(
string const& _name,
int32 const _default );
168 bool AddOptionString(
string const& _name,
string const& _default,
bool const _append );
178 bool GetOptionAsBool(
string const& _name,
bool* o_value );
188 bool GetOptionAsInt(
string const& _name,
int32* o_value );
198 bool GetOptionAsString(
string const& _name,
string* o_value );
207 OptionType GetOptionType(
string const& _name );
223 Option(
string const& _name ): m_name( _name ), m_append( false ){}
224 bool SetValueFromString(
string const& _value );
226 Options::OptionType m_type;
230 string m_valueString;
234 Options(
string const& _configPath,
string const& _userPath,
string const& _commandLine );
237 bool ParseOptionsString(
string const& _options );
238 bool ParseOptionsXML(
string const& _filename );
239 Option* AddOption(
string const& _name );
240 Option* Find(
string const& _name );
243 map<string,Option*> m_options;
246 string m_commandLine;
250 static Options* s_instance;
signed int int32
Definition Defs.h:94
#define OPENZWAVE_EXPORT_WARNINGS_ON
Definition Defs.h:53
#define OPENZWAVE_EXPORT
Definition Defs.h:51
#define OPENZWAVE_EXPORT_WARNINGS_OFF
Definition Defs.h:52
Implements COMMAND_CLASS_LOCK (0x76), a Z-Wave device command class.
Definition Lock.h:41
Manages library options read from XML files or the command line.
Definition Options.h:67
bool AreLocked() const
Definition Options.h:214
static Options * Get()
Definition Options.h:125
OptionType
Definition Options.h:70
@ OptionType_Int
Definition Options.h:73
@ OptionType_Bool
Definition Options.h:72