libnabo
1.0.1
|
Parameter vector. More...
#include <nabo.h>
Public Member Functions | |
Parameters () | |
Create an empty parameter vector. | |
Parameters (const std::string &key, const boost::any &value) | |
Create a parameter vector with a single entry. | |
template<typename T > | |
T | get (const std::string &key, const T &defaultValue) const |
Get the value of a key, return defaultValue if the key does not exist. |
Parameter vector.
Nabo::Parameters::Parameters | ( | const std::string & | key, |
const boost::any & | value | ||
) | [inline] |
Create a parameter vector with a single entry.
key | entry key |
value | entry value |
T Nabo::Parameters::get | ( | const std::string & | key, |
const T & | defaultValue | ||
) | const [inline] |
Get the value of a key, return defaultValue if the key does not exist.
key | requested key |
defaultValue | value to return if the key does not exist |