|
template<typename T > |
T | WireCell::convert (const Configuration &cfg, const T &def=T()) |
| Convert a configuration value to a particular type. More...
|
|
template<> |
bool | WireCell::convert< bool > (const Configuration &cfg, const bool &def) |
|
template<> |
int | WireCell::convert< int > (const Configuration &cfg, const int &def) |
|
template<> |
float | WireCell::convert< float > (const Configuration &cfg, const float &def) |
|
template<> |
double | WireCell::convert< double > (const Configuration &cfg, const double &def) |
|
template<> |
std::string | WireCell::convert< std::string > (const Configuration &cfg, const std::string &def) |
|
template<> |
std::vector< std::string > | WireCell::convert< std::vector< std::string > > (const Configuration &cfg, const std::vector< std::string > &def) |
|
template<> |
std::vector< int > | WireCell::convert< std::vector< int > > (const Configuration &cfg, const std::vector< int > &def) |
|
template<> |
std::vector< double > | WireCell::convert< std::vector< double > > (const Configuration &cfg, const std::vector< double > &def) |
|
Configuration | WireCell::branch (Configuration cfg, const std::string &dotpath) |
| Follow a dot.separated.path and return the branch there. More...
|
|
Configuration | WireCell::update (Configuration &a, Configuration &b) |
| Merge dictionary b into a, return a. More...
|
|
Configuration | WireCell::append (Configuration &a, Configuration &b) |
| Return an array which is composed of the array b appended to the array a. More...
|
|
template<typename T > |
Configuration | WireCell::find (Configuration &lst, const std::string &dotpath, const T &val) |
| Return dictionary in given list if it value at dotpath matches. More...
|
|
template<typename T > |
T | WireCell::get (Configuration cfg, const std::string &dotpath, const T &def=T()) |
| Get value in configuration at the dotted path from or return default. More...
|
|
template<typename T > |
void | WireCell::put (Configuration &cfg, const std::string &dotpath, const T &val) |
| Put value in configuration at the dotted path. More...
|
|