Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

EvtSymTable Class Reference

#include <EvtSymTable.hh>

List of all members.

Public Member Functions

 EvtSymTable ()
 ~EvtSymTable ()

Static Public Member Functions

void Define (const std::string &name, std::string d)
std::string Get (const std::string &name, int &ierr)

Static Private Attributes

std::map< std::string, std::string > _symMap


Constructor & Destructor Documentation

EvtSymTable::EvtSymTable  ) 
 

00037                          {
00038 
00039 }

EvtSymTable::~EvtSymTable  ) 
 

00035 {}


Member Function Documentation

void EvtSymTable::Define const std::string &  name,
std::string  d
[static]
 

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]
 

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]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 16:11:53 2011 for BOSS6.5.5 by  doxygen 1.3.9.1