EvtSymTable Class Reference

#include <EvtSymTable.hh>

List of all members.

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


Detailed Description

Definition at line 28 of file EvtSymTable.hh.


Constructor & Destructor Documentation

EvtSymTable::EvtSymTable (  ) 

Definition at line 37 of file EvtSymTable.cc.

00037                          {
00038 
00039 }

EvtSymTable::~EvtSymTable (  ) 

Definition at line 35 of file EvtSymTable.cc.

00035 {}


Member Function Documentation

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 }


Member Data Documentation

std::map< std::string, std::string > EvtSymTable::_symMap [static, private]

Definition at line 41 of file EvtSymTable.hh.

Referenced by Define(), and Get().


Generated on Tue Nov 29 23:19:27 2016 for BOSS_7.0.2 by  doxygen 1.4.7