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

marlin::ProcessorMgr Class Reference

Processor manager singleton class. More...

#include <ProcessorMgr.h>

List of all members.

Public Member Functions

bool addActiveProcessor (const std::string &processorType, const std::string &processorName, StringParameters *parameters, const std::string condition="true")
 Add a processor of type processorType with name processorName to the list of active processors including a condition for the execution of the processEvent() method.

void removeActiveProcessor (const std::string &name)
 Remove processor with name from list of active processors.

ProcessorgetActiveProcessor (const std::string &name)
 Return the active processor with the given name.

ProcessorgetProcessor (const std::string &type)
 Return the processor that has been registered with the given type.

void dumpRegisteredProcessors ()
 Dump information of all registered processors to stdout.

void dumpRegisteredProcessorsXML ()
 Dump information of all registered processors in XML format to stdout.

virtual void init ()
virtual void processRunHeader (LCRunHeader *)
virtual void processEvent (LCEvent *)
virtual void end ()
virtual void modifyRunHeader (LCRunHeader *)
virtual void modifyEvent (LCEvent *)
virtual void readDataSource (int numEvents)
 Calls readDataSource() for all Processors of type DataSourceProcessor.

virtual void setProcessorReturnValue (Processor *proc, bool val)
 Set the return value for the given processor.

virtual void setProcessorReturnValue (Processor *proc, bool val, const std::string &name)
 Set the named return value for the given processor.


Static Public Member Functions

ProcessorMgrinstance ()
 Return the instance of this manager.


Protected Member Functions

void registerProcessor (Processor *processor)
 Register a processor with the given name.

std::set< std::string > getAvailableProcessorTypes ()
 Returns a list of all registered processors found.


Friends

class Processor
class CMProcessor
class MarlinSteerCheck


Detailed Description

Processor manager singleton class.

Holds references to all registered Processors.

Author:
F. Gaede, DESY
Version:
Id
ProcessorMgr.h,v 1.16 2007/08/13 10:38:39 gaede Exp


Member Function Documentation

Processor * marlin::ProcessorMgr::getActiveProcessor const std::string &  name  ) 
 

Return the active processor with the given name.

NULL if no processor exists.

Processor * marlin::ProcessorMgr::getProcessor const std::string &  type  ) 
 

Return the processor that has been registered with the given type.

NULL if no processor exists.


The documentation for this class was generated from the following files:
Generated on Mon Jan 12 09:48:57 2009 for Marlin by doxygen 1.3.5