[Positioner] Add Configuration::uint_value()

This commit is contained in:
Matteo Cypriani 2012-01-26 09:41:41 +01:00
parent 35265e75c2
commit 7a6a85ad19
2 changed files with 8 additions and 0 deletions

View File

@ -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)
{
return configuration[key].as<float>() ;

View File

@ -28,6 +28,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 unsigned int value corresponding to \em key
static unsigned int uint_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