[Positioning] Add Configuration::float_value()
This commit is contained in:
parent
d735df6f94
commit
4c53ed372a
|
@ -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)
|
bool Configuration::bool_value(const string &key)
|
||||||
{
|
{
|
||||||
return configuration[key].as<bool>() ;
|
return configuration[key].as<bool>() ;
|
||||||
|
|
|
@ -21,6 +21,8 @@ public:
|
||||||
static const std::string& string_value(const std::string &key) ;
|
static const std::string& string_value(const std::string &key) ;
|
||||||
/// Returns the int value corresponding to \em key
|
/// Returns the int value corresponding to \em key
|
||||||
static int int_value(const std::string &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
|
/// Returns the bool value corresponding to \em key
|
||||||
static bool bool_value(const std::string &key) ;
|
static bool bool_value(const std::string &key) ;
|
||||||
/// Checks if a given string value exists in \em key
|
/// Checks if a given string value exists in \em key
|
||||||
|
|
Loading…
Reference in New Issue