[Positioning] Configuration: add bool_value()
This commit is contained in:
parent
f388e6c8ec
commit
60a10cb112
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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) ;
|
||||
|
|
Loading…
Reference in New Issue