----------------------------------------------------------------------------- Get the value of an integer option. -----------------------------------------------------------------------------
| 300 | // Get the value of an integer option. |
| 301 | //----------------------------------------------------------------------------- |
| 302 | bool Options::GetOptionAsInt |
| 303 | ( |
| 304 | string const& _name, |
| 305 | int32* o_value |
| 306 | ) |
| 307 | { |
| 308 | Option* option = Find( _name ); |
| 309 | if( o_value && option && ( OptionType_Int == option->m_type ) ) |
| 310 | { |
| 311 | *o_value = option->m_valueInt; |
| 312 | return true; |
| 313 | } |
| 314 | |
| 315 | Log::Write( LogLevel_Warning, "Specified option [%s] was not found.", _name.c_str() ); |
| 316 | return false; |
| 317 | } |
| 318 | |
| 319 | //----------------------------------------------------------------------------- |
| 320 | // <Options::GetOptionAsString> |
no test coverage detected