[Positioner] Add Configuration::uint_value()
This commit is contained in:
parent
35265e75c2
commit
7a6a85ad19
|
@ -48,6 +48,12 @@ int Configuration::int_value(const string &key)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
unsigned int Configuration::uint_value(const string &key)
|
||||||
|
{
|
||||||
|
return configuration[key].as<unsigned int>() ;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
float Configuration::float_value(const string &key)
|
float Configuration::float_value(const string &key)
|
||||||
{
|
{
|
||||||
return configuration[key].as<float>() ;
|
return configuration[key].as<float>() ;
|
||||||
|
|
|
@ -28,6 +28,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 unsigned int value corresponding to \em key
|
||||||
|
static unsigned int uint_value(const std::string &key) ;
|
||||||
/// Returns the float value corresponding to \em key
|
/// Returns the float value corresponding to \em key
|
||||||
static float float_value(const std::string &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
|
||||||
|
|
Loading…
Reference in New Issue