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 );
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;
Definition: Bitfield.h:34
#define OPENZWAVE_EXPORT
Definition: Defs.h:51
#define OPENZWAVE_EXPORT_WARNINGS_ON
Definition: Defs.h:53
Implements COMMAND_CLASS_LOCK (0x76), a Z-Wave device command class.
Definition: Lock.h:39
#define OPENZWAVE_EXPORT_WARNINGS_OFF
Definition: Defs.h:52
static Options * Get()
Definition: Options.h:125
Manages library options read from XML files or the command line.
Definition: Options.h:66
signed int int32
Definition: Defs.h:68
bool AreLocked() const
Definition: Options.h:214
OptionType
Definition: Options.h:69