----------------------------------------------------------------------------- Get the value of a string option. -----------------------------------------------------------------------------
| 321 | // Get the value of a string option. |
| 322 | //----------------------------------------------------------------------------- |
| 323 | bool Options::GetOptionAsString |
| 324 | ( |
| 325 | string const& _name, |
| 326 | string* o_value |
| 327 | ) |
| 328 | { |
| 329 | Option* option = Find( _name ); |
| 330 | if( o_value && option && ( OptionType_String == option->m_type ) ) |
| 331 | { |
| 332 | *o_value = option->m_valueString; |
| 333 | return true; |
| 334 | } |
| 335 | |
| 336 | Log::Write( LogLevel_Warning, "Specified option [%s] was not found.", _name.c_str() ); |
| 337 | return false; |
| 338 | } |
| 339 | |
| 340 | //----------------------------------------------------------------------------- |
| 341 | // <Options::GetOptionType> |