#include <EvtSymTable.hh>
Public Member Functions | |
EvtSymTable () | |
~EvtSymTable () | |
Static Public Member Functions | |
static void | Define (const std::string &name, std::string d) |
static std::string | Get (const std::string &name, int &ierr) |
Static Private Attributes | |
static std::map< std::string, std::string > | _symMap |
Definition at line 28 of file EvtSymTable.hh.
EvtSymTable::EvtSymTable | ( | ) |
EvtSymTable::~EvtSymTable | ( | ) |
void EvtSymTable::Define | ( | const std::string & | name, | |
std::string | d | |||
) | [static] |
Definition at line 41 of file EvtSymTable.cc.
References _symMap, Bes_Common::INFO, and report().
Referenced by EvtDecayTable::readDecayFile().
00041 { 00042 00043 if ( _symMap.find(symname)!=_symMap.end() ) { 00044 report(INFO,"EvtGen") << "Symbol:"<<symname.c_str()<< 00045 " redefined, old value:"<<_symMap[symname].c_str()<<" new value:"<<d.c_str()<<endl; 00046 _symMap[symname]=d; 00047 return; 00048 } 00049 00050 _symMap[symname]=d; 00051 return; 00052 }
std::string EvtSymTable::Get | ( | const std::string & | name, | |
int & | ierr | |||
) | [static] |
Definition at line 55 of file EvtSymTable.cc.
References _symMap.
Referenced by EvtCPUtil::incoherentMix(), and EvtDecayTable::readDecayFile().
00055 { 00056 00057 ierr=0; 00058 00059 if ( _symMap.find(symname)!=_symMap.end() ) return _symMap[symname]; 00060 00061 // If no matching symbol found just return the string 00062 00063 return symname; 00064 }
std::map< std::string, std::string > EvtSymTable::_symMap [static, private] |