Config
- Added a :has method to detect settings that have no default value.
This commit is contained in:
@@ -585,6 +585,12 @@ void Config::clear ()
|
||||
std::map <std::string, std::string>::clear ();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
const bool Config::has (const std::string& key)
|
||||
{
|
||||
return (*this).find (key) != (*this).end ();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Return the configuration value given the specified key.
|
||||
const std::string Config::get (const std::string& key)
|
||||
|
||||
Reference in New Issue
Block a user