MarlinMT
0.1.0
|
ProcessorConditionsExtension class Event extension providing access to processor runtime conditions (LogicalExpressions) More...
#include <EventExtensions.h>
Public Types | |
using | Conditions = std::shared_ptr< LogicalExpressions > |
using | ConditionsMap = std::map< std::string, std::string > |
Public Member Functions | |
~ProcessorConditionsExtension ()=default | |
ProcessorConditionsExtension ()=delete | |
ProcessorConditionsExtension (const ProcessorConditionsExtension &)=delete | |
ProcessorConditionsExtension & | operator= (const ProcessorConditionsExtension &)=delete |
ProcessorConditionsExtension (const ConditionsMap &conds) | |
Constructor. More... | |
void | set (const Processor *const processor, bool value) |
Set the runtime condition of the processor. More... | |
void | set (const Processor *const processor, const std::string &name, bool value) |
Set the named runtime condition of the processor. More... | |
bool | check (const std::string &name) const |
Check whether the runtime condition is true. More... | |
Private Attributes | |
Conditions | _runtimeConditions {std::make_shared<LogicalExpressions>()} |
The runtime conditions. More... | |
ProcessorConditionsExtension class Event extension providing access to processor runtime conditions (LogicalExpressions)
Definition at line 22 of file EventExtensions.h.
using marlinmt::ProcessorConditionsExtension::Conditions = std::shared_ptr<LogicalExpressions> |
Definition at line 24 of file EventExtensions.h.
using marlinmt::ProcessorConditionsExtension::ConditionsMap = std::map<std::string, std::string> |
Definition at line 25 of file EventExtensions.h.
|
default |
|
delete |
|
delete |
marlinmt::ProcessorConditionsExtension::ProcessorConditionsExtension | ( | const ConditionsMap & | conds | ) |
Constructor.
conds | the initial runtime condition of the event (from steering file) |
Definition at line 30 of file EventExtensions.cc.
bool marlinmt::ProcessorConditionsExtension::check | ( | const std::string & | name | ) | const |
Check whether the runtime condition is true.
name | the condition name |
Definition at line 50 of file EventExtensions.cc.
|
delete |
void marlinmt::ProcessorConditionsExtension::set | ( | const Processor *const | processor, |
bool | value | ||
) |
Set the runtime condition of the processor.
processor | the processor pointer |
value | the runtime condition to set |
Definition at line 38 of file EventExtensions.cc.
References marlinmt::Component::name(), and marlinmt::book::Flags::value().
void marlinmt::ProcessorConditionsExtension::set | ( | const Processor *const | processor, |
const std::string & | name, | ||
bool | value | ||
) |
Set the named runtime condition of the processor.
processor | the processor pointer |
name | the condition name |
value | the runtime condition to set |
Definition at line 44 of file EventExtensions.cc.
References marlinmt::Component::name(), and marlinmt::book::Flags::value().
|
private |
The runtime conditions.
Definition at line 67 of file EventExtensions.h.