#include <parametertree.hh>
|
| | ParameterTree () |
| |
| bool | hasKey (const std::string &key) const |
| |
| bool | hasSub (const std::string &sub) const |
| |
| std::string & | operator[] (const std::string &key) |
| |
| const std::string & | operator[] (const std::string &key) const |
| |
| void | report (std::ostream &stream=std::cout, const std::string &prefix="") const |
| |
| ParameterTree & | sub (const std::string &sub) |
| |
| const ParameterTree & | sub (const std::string &sub) const |
| |
| std::string | get (const std::string &key, const std::string &defaultValue) const |
| |
| std::string | get (const std::string &key, const char *defaultValue) const |
| |
| int | get (const std::string &key, int defaultValue) const |
| |
| double | get (const std::string &key, double defaultValue) const |
| |
| template<typename T > |
| T | get (const std::string &key, const T &defaultValue) const |
| | get value converted to a certain type More...
|
| |
| template<class T > |
| T | get (const std::string &key) const |
| | Get value. More...
|
| |
| const KeyVector & | getValueKeys () const |
| |
| const KeyVector & | getSubKeys () const |
| |
|
| static std::string | ltrim (const std::string &s) |
| |
| static std::string | rtrim (const std::string &s) |
| |
| static std::vector< std::string > | split (const std::string &s) |
| |
| template<class Iterator > |
| static void | parseRange (const std::string &str, Iterator it, const Iterator &end) |
| |
Definition at line 39 of file parametertree.hh.
| msbGrid::ParameterTree::ParameterTree |
( |
| ) |
|
| std::string msbGrid::ParameterTree::get |
( |
const std::string & |
key, |
|
|
const std::string & |
defaultValue |
|
) |
| const |
| std::string msbGrid::ParameterTree::get |
( |
const std::string & |
key, |
|
|
const char * |
defaultValue |
|
) |
| const |
| int msbGrid::ParameterTree::get |
( |
const std::string & |
key, |
|
|
int |
defaultValue |
|
) |
| const |
| double msbGrid::ParameterTree::get |
( |
const std::string & |
key, |
|
|
double |
defaultValue |
|
) |
| const |
template<typename T >
| T msbGrid::ParameterTree::get |
( |
const std::string & |
key, |
|
|
const T & |
defaultValue |
|
) |
| const |
|
inline |
get value converted to a certain type
Returns value as type T for given key.
- Template Parameters
-
- Parameters
-
| key | key name |
| defaultValue | default if key does not exist |
- Returns
- value converted to T
Definition at line 87 of file parametertree.hh.
template<class T >
| T msbGrid::ParameterTree::get |
( |
const std::string & |
key | ) |
const |
|
inline |
Get value.
- Template Parameters
-
- Parameters
-
- Exceptions
-
| RangeError | if key does not exist |
| NotImplemented | Type is not supported |
- Returns
- value as T
Definition at line 105 of file parametertree.hh.
| bool msbGrid::ParameterTree::hasKey |
( |
const std::string & |
key | ) |
const |
| bool msbGrid::ParameterTree::hasSub |
( |
const std::string & |
sub | ) |
const |
| std::string msbGrid::ParameterTree::ltrim |
( |
const std::string & |
s | ) |
|
|
staticprotected |
| std::string & msbGrid::ParameterTree::operator[] |
( |
const std::string & |
key | ) |
|
| const std::string & msbGrid::ParameterTree::operator[] |
( |
const std::string & |
key | ) |
const |
template<class Iterator >
| static void msbGrid::ParameterTree::parseRange |
( |
const std::string & |
str, |
|
|
Iterator |
it, |
|
|
const Iterator & |
end |
|
) |
| |
|
inlinestaticprotected |
| void msbGrid::ParameterTree::report |
( |
std::ostream & |
stream = std :: cout, |
|
|
const std::string & |
prefix = "" |
|
) |
| const |
| std::string msbGrid::ParameterTree::rtrim |
( |
const std::string & |
s | ) |
|
|
staticprotected |
| std::vector< std::string > msbGrid::ParameterTree::split |
( |
const std::string & |
s | ) |
|
|
staticprotected |
| std :: map< std :: string, ParameterTree > msbGrid::ParameterTree::subs |
|
protected |
| std :: map< std :: string, std :: string > msbGrid::ParameterTree::values |
|
protected |
The documentation for this class was generated from the following file: