EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <EicRoot/blob/master/dbase/dbInterface/FairDbConfigurable.h>
Public Member Functions | |
FairDbConfigurable () | |
virtual | ~FairDbConfigurable () |
virtual void | Config ()=0 |
virtual const FairRegistry & | DefaultConfig () const |
FairRegistry & | GetConfig () |
const FairRegistry & | GetConfig () const |
int | Update () |
void | Set (FairDbConfDialog *d=0) |
void | Set (const char *s) |
Protected Member Functions | |
virtual void | CommitDefaultConfig (const FairRegistry &r) |
Private Attributes | |
FairRegistry | fDefConfig |
FairRegistry | fConfig |
Definition at line 15 of file FairDbConfigurable.h.
View newest version in sPHENIX GitHub at line 15 of file FairDbConfigurable.h
FairDbConfigurable::FairDbConfigurable | ( | ) |
|
virtual |
Definition at line 14 of file FairDbConfigurable.cxx.
View newest version in sPHENIX GitHub at line 14 of file FairDbConfigurable.cxx
|
protectedvirtual |
====================================================================== Subclass must call this before the Configurable can have
Definition at line 18 of file FairDbConfigurable.cxx.
View newest version in sPHENIX GitHub at line 18 of file FairDbConfigurable.cxx
References fDefConfig.
|
pure virtual |
Implemented in FairDbTableProxyRegistry.
Referenced by Update().
|
virtual |
====================================================================== Eventually this might go in the database and load the
Definition at line 29 of file FairDbConfigurable.cxx.
View newest version in sPHENIX GitHub at line 29 of file FairDbConfigurable.cxx
References fDefConfig.
Referenced by Set().
FairRegistry & FairDbConfigurable::GetConfig | ( | ) |
====================================================================== Returns the configuration FairRegistry, this is non-const as the user
Definition at line 38 of file FairDbConfigurable.cxx.
View newest version in sPHENIX GitHub at line 38 of file FairDbConfigurable.cxx
References fConfig.
Referenced by FairDbTableProxyRegistry::Config(), Set(), and FairDbTableProxyRegistry::~FairDbTableProxyRegistry().
const FairRegistry & FairDbConfigurable::GetConfig | ( | ) | const |
====================================================================== Returns the configuration FairRegistry. This const version denies the user any freedom to modify it, but does mean that a
Definition at line 47 of file FairDbConfigurable.cxx.
View newest version in sPHENIX GitHub at line 47 of file FairDbConfigurable.cxx
References fConfig.
void FairDbConfigurable::Set | ( | FairDbConfDialog * | d = 0 | ) |
Definition at line 74 of file FairDbConfigurable.cxx.
View newest version in sPHENIX GitHub at line 74 of file FairDbConfigurable.cxx
References d, DefaultConfig(), GetConfig(), FairRegistry::LockValues(), FairRegistry::Merge(), FairDbConfDialog::Query(), FairDbConfDialog::SetCurrent(), FairDbConfDialog::SetDefault(), and FairRegistry::UnLockValues().
Referenced by FairDbTableProxyRegistry::SetConfigFromEnvironment().
void FairDbConfigurable::Set | ( | const char * | s | ) |
====================================================================== Update the configuration given a text string s. Format:
Definition at line 103 of file FairDbConfigurable.cxx.
View newest version in sPHENIX GitHub at line 103 of file FairDbConfigurable.cxx
References GetConfig(), FairRegistry::LockValues(), FairRegistry::Merge(), FairDbConf::StringToRegistry(), and FairRegistry::UnLockValues().
int FairDbConfigurable::Update | ( | ) |
====================================================================== Update the class's state given the current configuration. If there is nothing to do just return w/o taking any action. Return's 0 if
Definition at line 59 of file FairDbConfigurable.cxx.
View newest version in sPHENIX GitHub at line 59 of file FairDbConfigurable.cxx
References Config(), fConfig, FairRegistry::IsDirty(), and FairRegistry::SetDirty().
Referenced by FairDbTableProxyRegistry::SetConfigFromEnvironment().
|
private |
Definition at line 45 of file FairDbConfigurable.h.
View newest version in sPHENIX GitHub at line 45 of file FairDbConfigurable.h
Referenced by GetConfig(), and Update().
|
private |
Definition at line 45 of file FairDbConfigurable.h.
View newest version in sPHENIX GitHub at line 45 of file FairDbConfigurable.h
Referenced by CommitDefaultConfig(), and DefaultConfig().