#include <EventLoopConfigurationTokensHandler.h>
◆ EventLoopConfigurationTokensHandler()
Constructor.
- Parameters
-
manager | The analysis manager to configure. |
◆ ~EventLoopConfigurationTokensHandler()
EA::EventLoopConfigurationTokensHandler::~EventLoopConfigurationTokensHandler |
( |
| ) |
|
◆ _HandleAlgo()
void EA::EventLoopConfigurationTokensHandler::_HandleAlgo |
( |
const std::vector< std::string > & |
tokens | ) |
|
|
private |
◆ _HandleCache()
void EA::EventLoopConfigurationTokensHandler::_HandleCache |
( |
const std::vector< std::string > & |
tokens | ) |
|
|
private |
◆ _HandleCleanCache()
void EA::EventLoopConfigurationTokensHandler::_HandleCleanCache |
( |
const std::vector< std::string > & |
tokens | ) |
|
|
private |
◆ _HandleCollectGarbage()
void EA::EventLoopConfigurationTokensHandler::_HandleCollectGarbage |
( |
const std::vector< std::string > & |
tokens | ) |
|
|
private |
◆ _HandleEndSequence()
void EA::EventLoopConfigurationTokensHandler::_HandleEndSequence |
( |
const std::vector< std::string > & |
tokens | ) |
|
|
private |
◆ _HandleEventLoop()
void EA::EventLoopConfigurationTokensHandler::_HandleEventLoop |
( |
const std::vector< std::string > & |
tokens | ) |
|
|
private |
◆ _HandleFilter()
void EA::EventLoopConfigurationTokensHandler::_HandleFilter |
( |
const std::vector< std::string > & |
tokens | ) |
|
|
private |
◆ _HandleSequence()
void EA::EventLoopConfigurationTokensHandler::_HandleSequence |
( |
const std::vector< std::string > & |
tokens | ) |
|
|
private |
◆ _HandleSet()
void EA::EventLoopConfigurationTokensHandler::_HandleSet |
( |
const std::vector< std::string > & |
tokens | ) |
|
|
private |
◆ HandleTokens()
bool EA::EventLoopConfigurationTokensHandler::HandleTokens |
( |
const std::vector< std::string > & |
tokens | ) |
|
|
virtual |
Handles event loop configuration tokens.
Commands handled:
EventLoop [firstEvent] [nEvents] - main command: create an event loop Set <parameter>
- sub-command: sets the loop parameters CollectGarbage - sub-command: activates the automatic garbage collection Sequence <sequenceName> - sub-command: add a sequence of algorithms to the loop Algo <className> <algoName> - sub-command: add an algorithm to the loop Cache <objName> <evStoreName> - sub-command: book an event object from an event store for being cached CleanCache <objName> <evStoreName> - sub-command: delete cached values for an event object in an event store
Sub-commands of Sequence: CollectGarbage - sub-command: activates/deactivates the automatic garbage collection for this sequence Algo <className> <algoName> - sub-command: add an algorithm to the sequence EndSequence - sub-command: ends the definition of a sequence
Sub-commands of Algo: Set <parName>
- sub-command: set the value of an algorithm parameter Filter <on/off> [invert] - sub-command: enables/disable and eventually invert the filtering
- Parameters
-
tokens | The configuration tokens. |
- Returns
- false if the given token sequence is not understood and cannot be handled.
- Exceptions
-
std::logic_error | if any sub-command is given before its parent command (e.g. Filter before Algo) or if a wrong number of command arguments is given. |
EA::CommandLineParameters::MultipleDefinitionExc | when executing an Algo command which creates an algorithm whose name matches two command line glob expressions defining a value for the same parameter. |
std::runtime_error | if any other error occurs during the handling. |
Implements EA::ConfigurationTokensHandler.
◆ _algorithm
◆ _error
bool EA::EventLoopConfigurationTokensHandler::_error |
|
private |
◆ _eventLoop
◆ _loopAlreadyBuilt
bool EA::EventLoopConfigurationTokensHandler::_loopAlreadyBuilt |
|
private |
◆ _sequences
std::stack<std::unique_ptr<AlgoSequence> > EA::EventLoopConfigurationTokensHandler::_sequences |
|
private |
The documentation for this class was generated from the following files: