A singleton class holding all configuration registries built while parsing all loaded XML configuration files. More...
#include <AlgConfigPool.h>
Classes | |
struct | Cleaner |
Public Member Functions | |
Registry * | FindRegistry (string key) const |
Registry * | FindRegistry (string alg_name, string param_set) const |
Registry * | FindRegistry (const Algorithm *algorithm) const |
Registry * | FindRegistry (const AlgId &algid) const |
Registry * | GlobalParameterList (void) const |
Registry * | CommonList (const string &file_id, const string &set_name) const |
Registry * | TuneGeneratorList (void) const |
const vector< string > & | ConfigKeyList (void) const |
void | Print (ostream &stream) const |
Static Public Member Functions | |
static AlgConfigPool * | Instance () |
Private Member Functions | |
AlgConfigPool () | |
AlgConfigPool (const AlgConfigPool &config_pool) | |
virtual | ~AlgConfigPool () |
string | BuildConfigKey (string alg_name, string param_set) const |
string | BuildConfigKey (const Algorithm *algorithm) const |
bool | LoadAlgConfig (void) |
bool | LoadMasterConfig (void) |
bool | LoadGlobalParamLists (void) |
bool | LoadCommonLists (const string &file_id) |
bool | LoadTuneGeneratorList (void) |
bool | LoadSingleAlgConfig (string alg_name, string file_name) |
bool | LoadRegistries (string key_base, string file_name, string root) |
int | AddParameterVector (Registry *r, string pt, string pn, string pv, const string &delim=";") |
void | AddConfigParameter (Registry *r, string pt, string pn, string pv) |
void | AddBasicParameter (Registry *r, string pt, string pn, string pv) |
void | AddRootObjParameter (Registry *r, string pt, string pn, string pv) |
Private Attributes | |
map< string, Registry * > | fRegistryPool |
algorithm/param_set -> Registry More... | |
map< string, string > | fConfigFiles |
algorithm -> XML config file More... | |
vector< string > | fConfigKeyList |
list of all available configuration keys More... | |
string | fMasterConfig |
lists config files for all algorithms More... | |
Static Private Attributes | |
static AlgConfigPool * | fInstance = 0 |
Friends | |
struct | Cleaner |
ostream & | operator<< (ostream &stream, const AlgConfigPool &cp) |
A singleton class holding all configuration registries built while parsing all loaded XML configuration files.
May 06, 2004
Copyright (c) 2003-2020, The GENIE Collaboration For the full text of the license visit http://copyright.genie-mc.org
Definition at line 40 of file AlgConfigPool.h.
|
private |
Definition at line 50 of file AlgConfigPool.cxx.
|
private |
|
privatevirtual |
Definition at line 57 of file AlgConfigPool.cxx.
Definition at line 437 of file AlgConfigPool.cxx.
Definition at line 407 of file AlgConfigPool.cxx.
|
private |
Definition at line 372 of file AlgConfigPool.cxx.
Definition at line 491 of file AlgConfigPool.cxx.
Definition at line 590 of file AlgConfigPool.cxx.
Definition at line 612 of file AlgConfigPool.cxx.
Definition at line 565 of file AlgConfigPool.cxx.
Definition at line 558 of file AlgConfigPool.cxx.
Definition at line 546 of file AlgConfigPool.cxx.
Definition at line 552 of file AlgConfigPool.cxx.
Registry * AlgConfigPool::GlobalParameterList | ( | void | ) | const |
Definition at line 580 of file AlgConfigPool.cxx.
|
static |
Definition at line 83 of file AlgConfigPool.cxx.
|
private |
Definition at line 93 of file AlgConfigPool.cxx.
Definition at line 214 of file AlgConfigPool.cxx.
|
private |
Definition at line 197 of file AlgConfigPool.cxx.
|
private |
Definition at line 138 of file AlgConfigPool.cxx.
Definition at line 266 of file AlgConfigPool.cxx.
Definition at line 254 of file AlgConfigPool.cxx.
|
private |
Definition at line 237 of file AlgConfigPool.cxx.
void AlgConfigPool::Print | ( | ostream & | stream | ) | const |
Definition at line 617 of file AlgConfigPool.cxx.
Registry * AlgConfigPool::TuneGeneratorList | ( | void | ) | const |
Definition at line 603 of file AlgConfigPool.cxx.
|
friend |
Definition at line 97 of file AlgConfigPool.h.
|
friend |
Definition at line 41 of file AlgConfigPool.cxx.
algorithm -> XML config file
Definition at line 84 of file AlgConfigPool.h.
list of all available configuration keys
Definition at line 85 of file AlgConfigPool.h.
|
staticprivate |
Definition at line 81 of file AlgConfigPool.h.
|
private |
lists config files for all algorithms
Definition at line 86 of file AlgConfigPool.h.
algorithm/param_set -> Registry
Definition at line 83 of file AlgConfigPool.h.