MarlinTrk
02.08
|
#include <ConfigFlags.h>
Public Member Functions | |
ConfigFlags () | |
Helper class that holds a number of boolean properties for configuration. More... | |
~ConfigFlags () | |
void | registerOption (unsigned key, const std::string &name, bool defaultValue=false) |
bool | option (unsigned key) const |
bool | operator[] (unsigned key) const |
void | setOption (unsigned key, bool val) |
std::string & | optionName (unsigned key) |
Protected Attributes | |
Map | _map {} |
Private Types | |
typedef std::pair< std::string, bool > | Flag |
typedef std::map< unsigned, Flag > | Map |
Friends | |
std::ostream & | operator<< (std::ostream &os, const ConfigFlags &flags) |
Definition at line 15 of file ConfigFlags.h.
|
private |
Definition at line 19 of file ConfigFlags.h.
|
private |
Definition at line 20 of file ConfigFlags.h.
|
inline |
Helper class that holds a number of boolean properties for configuration.
The property keys (type: unsigned) have to be defined in the class using this class.
Definition at line 29 of file ConfigFlags.h.
|
inline |
Definition at line 31 of file ConfigFlags.h.
|
inline |
Definition at line 49 of file ConfigFlags.h.
References option().
|
inline |
Definition at line 39 of file ConfigFlags.h.
References _map, std::map< K, T >::end(), std::map< K, T >::find(), and std::pair::second.
Referenced by operator[]().
|
inline |
Definition at line 62 of file ConfigFlags.h.
References _map, std::map< K, T >::end(), and std::map< K, T >::find().
|
inline |
Definition at line 34 of file ConfigFlags.h.
References _map, and std::make_pair().
Referenced by MarlinTrk::IMarlinTrkSystem::registerOptions().
|
inline |
Definition at line 53 of file ConfigFlags.h.
References _map, std::map< K, T >::end(), std::map< K, T >::find(), and std::pair::second.
Referenced by MarlinTrk::IMarlinTrkSystem::setOption().
|
friend |
|
protected |
Definition at line 75 of file ConfigFlags.h.
Referenced by MarlinTrk::operator<<(), option(), optionName(), registerOption(), and setOption().