CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
edm::ActionTable Class Reference

#include <Actions.h>

Public Types

typedef std::map< std::string,
actions::ActionCodes
ActionMap
 

Public Member Functions

 ActionTable ()
 
 ActionTable (const ParameterSet &)
 
void add (const std::string &category, actions::ActionCodes code)
 
actions::ActionCodes find (const std::string &category) const
 
 ~ActionTable ()
 

Private Member Functions

void addDefaults ()
 

Private Attributes

ActionMap map_
 

Detailed Description

Definition at line 22 of file Actions.h.

Member Typedef Documentation

typedef std::map<std::string, actions::ActionCodes> edm::ActionTable::ActionMap

Definition at line 24 of file Actions.h.

Constructor & Destructor Documentation

edm::ActionTable::ActionTable ( )

Definition at line 32 of file Actions.cc.

References addDefaults().

32  : map_() {
33  addDefaults();
34  }
ActionMap map_
Definition: Actions.h:35
void addDefaults()
Definition: Actions.cc:72
edm::ActionTable::ActionTable ( const ParameterSet pset)
explicit
edm::ActionTable::~ActionTable ( )

Definition at line 86 of file Actions.cc.

86  {
87  }

Member Function Documentation

void edm::ActionTable::add ( const std::string &  category,
actions::ActionCodes  code 
)

Definition at line 89 of file Actions.cc.

References python.rootplot.argparse::category, and map_.

89  {
90  map_[category] = code;
91  }
ActionMap map_
Definition: Actions.h:35
void edm::ActionTable::addDefaults ( )
private

Definition at line 72 of file Actions.cc.

References dtNoiseDBValidation_cfg::cerr, edm::debugit, cuy::ib, and map_.

Referenced by ActionTable().

72  {
73  using namespace boost::lambda;
74  // populate defaults that are not 'Rethrow'
75  // (There are none as of CMSSW_3_4_X.)
76  // 'Rethrow' is the default default.
77  if(2 <= debugit()) {
78  ActionMap::const_iterator ib(map_.begin()),ie(map_.end());
79  for(;ib != ie; ++ib) {
80  std::cerr << ib->first << ',' << ib->second << '\n';
81  }
82  std::cerr << std::endl;
83  }
84  }
ActionMap map_
Definition: Actions.h:35
int ib
Definition: cuy.py:660
debugvalue debugit
Definition: DebugMacros.cc:13
actions::ActionCodes edm::ActionTable::find ( const std::string &  category) const

Member Data Documentation

ActionMap edm::ActionTable::map_
private

Definition at line 35 of file Actions.h.

Referenced by ActionTable(), add(), addDefaults(), and find().