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);
225 Option(
string const& _name) :
226 m_name(_name), m_append(false)
229 bool SetValueFromString(
string const& _value);
231 Options::OptionType m_type;
235 string m_valueString;
239 Options(
string const& _configPath,
string const& _userPath,
string const& _commandLine);
242 bool ParseOptionsString(
string const& _options);
243 bool ParseOptionsXML(
string const& _filename);
244 Option* AddOption(
string const& _name);
245 Option* Find(
string const& _name);
247 map<string, Option*> m_options;
249 string m_commandLine;
253 static Options* s_instance;
signed int int32
Definition: Defs.h:90
#define OPENZWAVE_EXPORT
Definition: Defs.h:52
Manages library options read from XML files or the command line.
Definition: Options.h:67
bool AreLocked() const
Definition: Options.h:214
OptionType
Definition: Options.h:70
@ OptionType_Int
Definition: Options.h:73
@ OptionType_Bool
Definition: Options.h:72
Definition: Bitfield.cpp:31