----------------------------------------------------------------------------- Get the type of value stored in an option. -----------------------------------------------------------------------------
| 342 | // Get the type of value stored in an option. |
| 343 | //----------------------------------------------------------------------------- |
| 344 | Options::OptionType Options::GetOptionType |
| 345 | ( |
| 346 | string const& _name |
| 347 | ) |
| 348 | { |
| 349 | Option* option = Find( _name ); |
| 350 | if( option ) |
| 351 | { |
| 352 | return option->m_type; |
| 353 | } |
| 354 | |
| 355 | // Option not found |
| 356 | Log::Write( LogLevel_Warning, "Specified option [%s] was not found.", _name.c_str() ); |
| 357 | return OptionType_Invalid; |
| 358 | } |
| 359 | |
| 360 | //----------------------------------------------------------------------------- |
| 361 | // <Options::Lock> |