![]() |
ATLAS Offline Software
|
#include <VarHolder.h>
Public Member Functions | |
| VarHolder () | |
| virtual | ~VarHolder () |
| bool | replaceVar (unsigned key, double value) |
| bool | addVar (unsigned key, double value) |
| Adds a variable to the VarHolder. | |
| bool | delVar (unsigned key) |
| double | getVar (const unsigned key) const |
| bool | getVar (const unsigned key, double &value) const |
| bool | getVar (const unsigned key, float &value) const |
| bool | hasKey (unsigned key) const |
| bool | hasVar (unsigned key) const |
| int | registerAllVars () |
| bool | registerVar (Prompt::Def::Var var, const std::string &name) |
| Prompt::Def::Var | registerDynamicVar (const std::string &name) |
| std::string | convert2Str (const Prompt::Def::Var var) const |
| Prompt::Def::Var | convert2Var (const std::string &var) |
| Prompt::Def::Var | convert2Var (const uint32_t key) |
| void | getAllVarEnums () |
| std::string | asStr (const uint32_t key, const double val) |
| std::string | asStr (const Prompt::Def::Var var) |
| std::vector< Prompt::Def::Var > | readVars (const std::string &config) |
| std::vector< Prompt::Def::Var > | readVectorVars (const std::vector< std::string > &keys) |
| virtual void | clearVars () |
Static Public Member Functions | |
| static std::string | getObjectType () |
Private Attributes | |
| VarMap | m_gPromptVars |
| VarEntryVec | m_fVars |
| std::vector< Prompt::Def::Var > | m_varEnums |
Definition at line 101 of file VarHolder.h.
| Prompt::VarHolder::VarHolder | ( | ) |
Definition at line 16 of file VarHolder.cxx.
|
inlinevirtual |
Definition at line 105 of file VarHolder.h.
|
inline |
Adds a variable to the VarHolder.
This function adds a variable to the VarHolder using the specified key and value.
| key | The key of the variable. |
| value | The value of the variable. |
Definition at line 200 of file VarHolder.h.
| std::string Prompt::VarHolder::asStr | ( | const Prompt::Def::Var | var | ) |
Definition at line 172 of file VarHolder.cxx.
Definition at line 178 of file VarHolder.cxx.
|
inlinevirtual |
Definition at line 275 of file VarHolder.h.
| std::string Prompt::VarHolder::convert2Str | ( | const Prompt::Def::Var | var | ) | const |
Definition at line 77 of file VarHolder.cxx.
| Prompt::Def::Var Prompt::VarHolder::convert2Var | ( | const std::string & | var | ) |
Definition at line 90 of file VarHolder.cxx.
| Prompt::Def::Var Prompt::VarHolder::convert2Var | ( | const uint32_t | key | ) |
Definition at line 104 of file VarHolder.cxx.
|
inline |
Definition at line 213 of file VarHolder.h.
| void Prompt::VarHolder::getAllVarEnums | ( | ) |
Definition at line 67 of file VarHolder.cxx.
|
inlinestatic |
Definition at line 107 of file VarHolder.h.
|
inline |
Definition at line 265 of file VarHolder.h.
|
inline |
Definition at line 251 of file VarHolder.h.
|
inline |
|
inline |
Definition at line 228 of file VarHolder.h.
|
inline |
Definition at line 232 of file VarHolder.h.
| std::vector< Prompt::Def::Var > Prompt::VarHolder::readVars | ( | const std::string & | config | ) |
Definition at line 123 of file VarHolder.cxx.
| std::vector< Prompt::Def::Var > Prompt::VarHolder::readVectorVars | ( | const std::vector< std::string > & | keys | ) |
Definition at line 149 of file VarHolder.cxx.
| int Prompt::VarHolder::registerAllVars | ( | ) |
Definition at line 228 of file VarHolder.cxx.
| Prompt::Def::Var Prompt::VarHolder::registerDynamicVar | ( | const std::string & | name | ) |
Definition at line 41 of file VarHolder.cxx.
| bool Prompt::VarHolder::registerVar | ( | Prompt::Def::Var | var, |
| const std::string & | name ) |
Definition at line 21 of file VarHolder.cxx.
|
inline |
Definition at line 178 of file VarHolder.h.
|
private |
Definition at line 143 of file VarHolder.h.
|
private |
Definition at line 142 of file VarHolder.h.
|
private |
Definition at line 145 of file VarHolder.h.