#include <Controller.hpp>
Inheritance diagram for cafe::Controller:

Processors that have children. This is intended as an internal base class. As a user prefer 'Group' instead.
Configuration options:
Definition at line 39 of file Controller.hpp.
Public Member Functions | |
| Controller (const char *name) | |
| Controller (const char *name, const std::list< cafe::Processor * > &procs) | |
| ~Controller () | |
| virtual void | setDebug (unsigned int level) |
| Set the debug level. Usually done by controller. | |
| bool | add (const std::string &name, const std::string &instance="") |
| Add the named Processor to this Controller. | |
| bool | add (Processor *proc) |
| Add Processor object directly to Controller. | |
| bool | add (bool(*func)(Event &), const std::string &instance) |
| Add function directly to Controller. | |
| ClassDef (Controller, 0) | |
Processor interface | |
Calls the corresponding method for every child. | |
| virtual void | begin () |
| Called at beginning of processing. | |
| virtual void | finish () |
| Called at end of processing. | |
| virtual void | inputFileOpened (TFile *file) |
| Called for every new input file that was opened. | |
| virtual void | inputFileClosing (TFile *file) |
| Called for every input file that is about to be closed. | |
| virtual bool | processEvent (Event &event) |
| Called for every event. | |
Protected Member Functions | |
| bool | add (const std::list< Processor * > &procs) |
| Only used by subclasses: set the list of children. | |
Protected Attributes | |
| std::list< Processor * > | _processors |
| std::vector< std::string > | _untag |
| std::vector< std::string > | _tag |
Private Attributes | |
| TFile * | _outfile |
|
|
Definition at line 18 of file Controller.cpp. References _tag, _untag, add(), cafe::Config::get(), cafe::Config::getVString(), cafe::Processor::name(), and cafe::ParseRun::parse(). Referenced by cafe::If::If(), cafe::IfPr::IfPr(), and cafe::Permute::Permute(). |
|
||||||||||||
|
Definition at line 38 of file Controller.cpp. References add(). |
|
|
Definition at line 45 of file Controller.cpp. References _processors. |
|
|
Only used by subclasses: set the list of children.
Definition at line 187 of file Controller.cpp. References add(). |
|
||||||||||||
|
Add function directly to Controller.
Definition at line 177 of file Controller.cpp. References add(). |
|
|
Add Processor object directly to Controller.
Definition at line 162 of file Controller.cpp. References _processors, cafe::Processor::debug(), cafe::Processor::fullName(), cafe::Processor::name(), cafe::Processor::out(), cafe::Processor::setDebug(), and cafe::Processor::setParent(). |
|
||||||||||||
|
Add the named Processor to this Controller.
Definition at line 182 of file Controller.cpp. Referenced by add(), Controller(), cafe::If::If(), cafe::IfPr::IfPr(), and cafe::Permute::Permute(). |
|
|
Called at beginning of processing.
Reimplemented from cafe::Processor. Definition at line 55 of file Controller.cpp. References _outfile, _processors, cafe::Config::get(), cafe::Processor::getDirectory(), cafe::Processor::name(), cafe::Processor::out(), and cafe::Processor::setDirectory(). Referenced by cafe::Selector::Begin(), and cafe::RunController::Run(). |
|
||||||||||||
|
|
|
|
Called at end of processing.
Reimplemented from cafe::Processor. Reimplemented in cafe::EventMultiSplitter. Definition at line 99 of file Controller.cpp. References _outfile, _processors, cafe::Processor::name(), and cafe::Processor::out(). Referenced by cafe::RunController::Run(), and cafe::Selector::Terminate(). |
|
|
Called for every input file that is about to be closed.
Reimplemented from cafe::Processor. Definition at line 129 of file Controller.cpp. References _processors. Referenced by cafe::RunController::Run(). |
|
|
Called for every new input file that was opened.
Reimplemented from cafe::Processor. Reimplemented in cafe::If. Definition at line 120 of file Controller.cpp. References _processors. Referenced by cafe::Selector::Init(), and cafe::RunController::Run(). |
|
|
Called for every event.
Reimplemented from cafe::Processor. Reimplemented in cafe::EventMultiSplitter, cafe::Fork, cafe::If, cafe::IfPr, cafe::OR, cafe::Permute, and cafe::Timer. Definition at line 138 of file Controller.cpp. References _processors, _tag, _untag, cafe::EventBase::tag(), and cafe::EventBase::untag(). Referenced by cafe::Selector::Process(), and cafe::RunController::processTree(). |
|
|
Set the debug level. Usually done by controller.
Reimplemented from cafe::Processor. Definition at line 151 of file Controller.cpp. References _processors. |
|
|
Definition at line 76 of file Controller.hpp. |
|
|
Definition at line 71 of file Controller.hpp. Referenced by add(), begin(), finish(), inputFileClosing(), inputFileOpened(), cafe::Permute::processEvent(), cafe::OR::processEvent(), cafe::IfPr::processEvent(), cafe::If::processEvent(), cafe::Fork::processEvent(), processEvent(), setDebug(), and ~Controller(). |
|
|
Definition at line 73 of file Controller.hpp. Referenced by Controller(), cafe::IfPr::IfPr(), cafe::OR::processEvent(), cafe::IfPr::processEvent(), cafe::If::processEvent(), cafe::Fork::processEvent(), and processEvent(). |
|
|
Definition at line 72 of file Controller.hpp. Referenced by Controller(), cafe::IfPr::IfPr(), cafe::OR::processEvent(), cafe::IfPr::processEvent(), cafe::If::processEvent(), cafe::Fork::processEvent(), and processEvent(). |
1.3.4