----------------------------------------------------------------------------- Find an option by name -----------------------------------------------------------------------------
| 572 | // Find an option by name |
| 573 | //----------------------------------------------------------------------------- |
| 574 | Options::Option* Options::Find |
| 575 | ( |
| 576 | string const& _name |
| 577 | ) |
| 578 | { |
| 579 | string lowername = ToLower( _name ); |
| 580 | map<string,Option*>::iterator it = m_options.find( lowername ); |
| 581 | if( it != m_options.end() ) |
| 582 | { |
| 583 | return it->second; |
| 584 | } |
| 585 | |
| 586 | return NULL; |
| 587 | } |
| 588 | |
| 589 | //----------------------------------------------------------------------------- |
| 590 | // <Options::Option::SetValueFromString> |