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

marlin::CMProcessor Class Reference

#include <CMProcessor.h>

List of all members.

Public Member Functions

 ~CMProcessor ()
ProcessorgetProc (const std::string &type)
ssMap getProcDesc ()
StringParametersgetSParams (const std::string &type)
StringParametersmergeParams (const std::string &type, StringParameters *sp)
ProcessorParametergetParam (const std::string &type, const std::string &key)
const std::string getParamD (const std::string &type, const std::string &key)
const std::string getParamT (const std::string &type, const std::string &key)
int getParamSetSize (const std::string &type, const std::string &key)
bool isParamVec (const std::string &type, const std::string &key)
bool isParamOpt (const std::string &type, const std::string &key)
bool isInstalled (const std::string &type)
void tokenize (const std::string str, StringVec &tokens, const std::string &delimiters=" ")

Static Public Member Functions

CMProcessorinstance ()

Private Member Functions

 CMProcessor ()

Private Attributes

ProcessorMap _mProcs
ssMap _mpDescriptions
sbMap _mpStatus
sSPMap _mpSParameters
sSet _mpTypes

Static Private Attributes

CMProcessor_me = NULL


Constructor & Destructor Documentation

marlin::CMProcessor::~CMProcessor  ) 
 

Definition at line 83 of file CMProcessor.cc.

marlin::CMProcessor::CMProcessor  )  [private]
 

Definition at line 18 of file CMProcessor.cc.

References _mpDescriptions, _mProcs, _mpSParameters, _mpStatus, _mpTypes, marlin::Processor::description(), getParam(), isParamVec(), marlin::Processor::newProcessor(), marlin::Processor::setProcessorParameters(), EVENT::StringVec, tokenize(), and marlin::Processor::updateParameters().


Member Function Documentation

ProcessorParameter * marlin::CMProcessor::getParam const std::string &  type,
const std::string &  key
 

returns the parameter with the given key of the processor with the given type

Definition at line 152 of file CMProcessor.cc.

References _mProcs, and isInstalled().

Referenced by CMProcessor(), getParamD(), getParamSetSize(), getParamT(), isParamOpt(), and isParamVec().

const string marlin::CMProcessor::getParamD const std::string &  type,
const std::string &  key
 

returns the description of the parameter with the given key for the processor with the given type

Definition at line 165 of file CMProcessor.cc.

References marlin::ProcessorParameter::description(), and getParam().

int marlin::CMProcessor::getParamSetSize const std::string &  type,
const std::string &  key
 

returns the set_size of the parameter with the given key for the processor with the given type

Definition at line 181 of file CMProcessor.cc.

References getParam(), and marlin::ProcessorParameter::setSize().

const string marlin::CMProcessor::getParamT const std::string &  type,
const std::string &  key
 

returns the type of the parameter with the given key for the processor with the given type

Definition at line 173 of file CMProcessor.cc.

References getParam(), and marlin::ProcessorParameter::type().

Processor * marlin::CMProcessor::getProc const std::string &  type  ) 
 

returns the instance of the processor with the given type

Definition at line 92 of file CMProcessor.cc.

References _mProcs, and isInstalled().

ssMap marlin::CMProcessor::getProcDesc  )  [inline]
 

returns a map with the processor descriptions

Definition at line 35 of file CMProcessor.h.

References marlin::ssMap.

StringParameters * marlin::CMProcessor::getSParams const std::string &  type  ) 
 

returns the parameters for the processor of the given type

Definition at line 99 of file CMProcessor.cc.

References _mpSParameters, and isInstalled().

CMProcessor * marlin::CMProcessor::instance  )  [static]
 

return the instance of this class

Definition at line 11 of file CMProcessor.cc.

References _me.

bool marlin::CMProcessor::isInstalled const std::string &  type  ) 
 

returns true if the processor with the given type is installed

Definition at line 85 of file CMProcessor.cc.

References _mpStatus.

Referenced by getParam(), getProc(), getSParams(), and mergeParams().

bool marlin::CMProcessor::isParamOpt const std::string &  type,
const std::string &  key
 

returns true if the parameter with the given key for the processor with the given type is optional

Definition at line 189 of file CMProcessor.cc.

References getParam(), and marlin::ProcessorParameter::isOptional().

Referenced by mergeParams().

bool marlin::CMProcessor::isParamVec const std::string &  type,
const std::string &  key
 

returns true if the parameter with the given key for the processor with the given type is a vector

Definition at line 198 of file CMProcessor.cc.

References getParam(), and marlin::ProcessorParameter::type().

Referenced by CMProcessor().

StringParameters * marlin::CMProcessor::mergeParams const std::string &  type,
StringParameters sp
 

merges the given parameters with the default ones from the processor with the given type

Definition at line 106 of file CMProcessor.cc.

References _mpSParameters, marlin::StringParameters::add(), isInstalled(), marlin::StringParameters::isParameterSet(), isParamOpt(), and EVENT::StringVec.

void marlin::CMProcessor::tokenize const std::string  str,
StringVec tokens,
const std::string &  delimiters = " "
 

Definition at line 212 of file CMProcessor.cc.

Referenced by CMProcessor().


Member Data Documentation

CMProcessor * marlin::CMProcessor::_me = NULL [static, private]
 

Definition at line 9 of file CMProcessor.cc.

Referenced by instance().

ssMap marlin::CMProcessor::_mpDescriptions [private]
 

Definition at line 80 of file CMProcessor.h.

Referenced by CMProcessor().

ProcessorMap marlin::CMProcessor::_mProcs [private]
 

Definition at line 79 of file CMProcessor.h.

Referenced by CMProcessor(), getParam(), and getProc().

sSPMap marlin::CMProcessor::_mpSParameters [private]
 

Definition at line 82 of file CMProcessor.h.

Referenced by CMProcessor(), getSParams(), and mergeParams().

sbMap marlin::CMProcessor::_mpStatus [private]
 

Definition at line 81 of file CMProcessor.h.

Referenced by CMProcessor(), and isInstalled().

sSet marlin::CMProcessor::_mpTypes [private]
 

Definition at line 84 of file CMProcessor.h.

Referenced by CMProcessor().


The documentation for this class was generated from the following files:
Generated on Sun Jun 3 06:32:30 2007 for A TPC Tracking Environment by  doxygen 1.3.9.1