[Positioning] Configuration: add bool_value()

This commit is contained in:
Matteo Cypriani 2011-03-29 14:19:31 +02:00
parent f388e6c8ec
commit 60a10cb112
2 changed files with 8 additions and 0 deletions

View File

@ -41,6 +41,12 @@ int Configuration::int_value(const string &key)
}
bool Configuration::bool_value(const string &key)
{
return configuration[key].as<bool>() ;
}
bool Configuration::
value_exists_in_string_vector(const string &key, const string &value)
{

View File

@ -22,6 +22,8 @@ public:
static const std::string& string_value(const std::string &key) ;
/// Get the int value corresponding to \em key
static int int_value(const std::string &key) ;
/// Get the bool value corresponding to \em key
static bool bool_value(const std::string &key) ;
static bool value_exists_in_string_vector(
const std::string &key,
const std::string &value) ;