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;