SourceXtractorPlusPlus
0.16
Please provide a description of the project.
|
#include <ExternalFlagTaskFactory.h>
Public Member Functions | |
virtual | ~ExternalFlagTaskFactory ()=default |
void | reportConfigDependencies (Euclid::Configuration::ConfigManager &manager) const override |
Registers all the Configuration dependencies. More... | |
void | configure (Euclid::Configuration::ConfigManager &manager) override |
Method which should initialize the object. More... | |
virtual std::shared_ptr< Task > | createTask (const PropertyId &property_id) const override |
Returns a Task producing a Property corresponding to the given PropertyId. More... | |
void | registerPropertyInstances (OutputRegistry &) override |
![]() | |
virtual | ~TaskFactory ()=default |
Destructor. More... | |
![]() | |
virtual | ~Configurable ()=default |
Destructor. More... | |
Static Public Attributes | |
static const char | propertyName [] = "ExternalFlags" |
Private Attributes | |
std::map< PropertyId, ExternalFlagConfig::FlagInfo > | m_flag_info_map |
std::vector< std::pair< std::string, unsigned int > > | m_instance_names |
bool | m_is_output_requested = false |
Definition at line 39 of file ExternalFlagTaskFactory.h.
|
virtualdefault |
|
overridevirtual |
Method which should initialize the object.
The given manager is guaranteed to already be in the initialized state, so all the required Configurations can be accessed using its getConfiguration() method.
manager | The manager to get the Configurations from |
Reimplemented from SourceXtractor::TaskFactory.
Definition at line 64 of file ExternalFlagTaskFactory.cpp.
References std::vector< T >::emplace_back(), std::find(), Euclid::Configuration::ConfigManager::getConfiguration(), SourceXtractor::OutputConfig::getOutputProperties(), m_flag_info_map, m_instance_names, m_is_output_requested, and propertyName.
|
overridevirtual |
Returns a Task producing a Property corresponding to the given PropertyId.
Implements SourceXtractor::TaskFactory.
Definition at line 40 of file ExternalFlagTaskFactory.cpp.
References SourceXtractor::ExternalFlagConfig::AND, SourceXtractor::PropertyId::getIndex(), m_flag_info_map, SourceXtractor::ExternalFlagConfig::MAX, SourceXtractor::ExternalFlagConfig::MIN, SourceXtractor::ExternalFlagConfig::MOST, and SourceXtractor::ExternalFlagConfig::OR.
|
overridevirtual |
Reimplemented from SourceXtractor::TaskFactory.
Definition at line 81 of file ExternalFlagTaskFactory.cpp.
References std::vector< T >::empty(), m_instance_names, m_is_output_requested, and SourceXtractor::OutputRegistry::registerPropertyInstances().
|
overridevirtual |
Registers all the Configuration dependencies.
Configurable implementations should implement this method to register to the given ConfigManager (using the registerConfiguration() method) all the Configurations they are going to use
manager | The manager to register the dependencies to |
Reimplemented from SourceXtractor::TaskFactory.
Definition at line 34 of file ExternalFlagTaskFactory.cpp.
References Euclid::Configuration::ConfigManager::registerConfiguration().
|
private |
Definition at line 57 of file ExternalFlagTaskFactory.h.
Referenced by configure(), and createTask().
|
private |
Definition at line 58 of file ExternalFlagTaskFactory.h.
Referenced by configure(), and registerPropertyInstances().
|
private |
Definition at line 60 of file ExternalFlagTaskFactory.h.
Referenced by configure(), and registerPropertyInstances().
|
static |
Definition at line 42 of file ExternalFlagTaskFactory.h.
Referenced by configure(), and SourceXtractor::ExternalFlagPlugin::registerPlugin().