Config
#include "Config.hh" |
Config
class description - source file - inheritance tree (.pdf)
class Config : public EsafMsgSource
Inheritance Chart: | |||||||||
|
private:
Config() void LoadStandardConfigs() void ResetUserDef() public:
virtual ~Config() void AddUserDefinition(const string& ClassName, const string& expr) void AssociateParent(const string& c_name, const string& p_name) static TClass* Class() static Config* Get() ConfigFileParser* GetCF(const string& ClassType, const string& ClassName, const string& path = ) ConfigFileParser* GetCF(const EsafConfigurable* obj) const char* GetCfgDump() const ConfigFileParser* GetStandardConfig() const map<string,ConfigFileParser*>& GetStandardConfigMap() const const char* GetStdConfigList() const virtual TClass* IsA() const Bool_t IsStandardConfigDefined() const Bool_t LoadUserConfig(const char*) void Reset(Bool_t user = kFALSE) void SaveConfig(const char* name = "0") void SetCfgDump(const char* name) void SetStdConfigList(const char* fname) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) Bool_t UseConfig(const string& standard_config_name)
Data Members
private:
static Config* fMe map<string,ConfigFileParser*> fCfs map<string,ConfigFileParser*> fStandards map<string,vector<string>*> fUserDef map<string,string*> fChildTable string fCurrentConfig string fStdConfigList string fCfgDump config dump filename
Class Description
Configuration Manager ====================
Config()
Ctor
~Config()
Dtor
Config* Get()
Instance
void SetCfgDump( const char* name )
void SaveConfig( const char* name )
Save the current configuration in a single "standard config file"
ConfigFileParser* GetCF(const string &ClassType, const string &ClassName, const string &path )
if ClassName is name of a parent class whose real instance is a child, the file corresponding to the child is returned
Bool_t UseConfig(const string& name)
Define a new config with the current configuration files to be implemented
ConfigFileParser* GetStandardConfig()
Get the current standard config if defined returns NULL if not (no exception thrown)
void LoadStandardConfigs()
Load the list of defined standard configs
void Reset(Bool_t user)
Reset the config
void ResetUserDef()
Reset User settings
void AssociateParent(const string& c_name, const string& p_name)
associate class name and parent name
void AddUserDefinition(const string &c_name, const string &expr)
Overrides a parameter of the config files. Syntax: Config::Get()->AddUserDefinition( "classname","parameter=value")
Bool_t LoadUserConfig( const char* fname )
Load a set of user definitions from file The definitions MUST have the following format Classname.VarName=Value
Inline Functions
Bool_t IsStandardConfigDefined() const const char* GetCfgDump() const ConfigFileParser* GetCF(const EsafConfigurable* obj) const char* GetStdConfigList() const const map<string,ConfigFileParser*>& GetStandardConfigMap() const void SetStdConfigList(const char* fname) TClass* Class() TClass* IsA() const void ShowMembers(TMemberInspector& insp, char* parent) void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)