----------------------------------------------------------------------------- Get the value of a boolean option. -----------------------------------------------------------------------------
| 279 | // Get the value of a boolean option. |
| 280 | //----------------------------------------------------------------------------- |
| 281 | bool Options::GetOptionAsBool |
| 282 | ( |
| 283 | string const& _name, |
| 284 | bool* o_value |
| 285 | ) |
| 286 | { |
| 287 | Option* option = Find( _name ); |
| 288 | if( o_value && option && ( OptionType_Bool == option->m_type ) ) |
| 289 | { |
| 290 | *o_value = option->m_valueBool; |
| 291 | return true; |
| 292 | } |
| 293 | |
| 294 | Log::Write( LogLevel_Warning, "Specified option [%s] was not found.", _name.c_str() ); |
| 295 | return false; |
| 296 | } |
| 297 | |
| 298 | //----------------------------------------------------------------------------- |
| 299 | // <Options::GetOptionAsInt> |
no test coverage detected