[Positioning] Add Configuration::float_value()

This commit is contained in:
Matteo Cypriani 2011-07-23 18:09:58 +02:00
parent d735df6f94
commit 4c53ed372a
2 changed files with 8 additions and 0 deletions

View File

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

View File

@ -21,6 +21,8 @@ public:
static const std::string& string_value(const std::string &key) ;
/// Returns the int value corresponding to \em key
static int int_value(const std::string &key) ;
/// Returns the float value corresponding to \em key
static float float_value(const std::string &key) ;
/// Returns the bool value corresponding to \em key
static bool bool_value(const std::string &key) ;
/// Checks if a given string value exists in \em key