SourceXtractorPlusPlus  0.15
Please provide a description of the project.
AssocModeTaskFactory.cpp
Go to the documentation of this file.
1 
20 #include <iostream>
21 #include <sstream>
22 
24 #include "SEFramework/Task/Task.h"
25 
29 
30 
31 namespace SourceXtractor {
32 
34 
37 }
38 
40  auto config = manager.getConfiguration<AssocModeConfig>();
41 
42  m_catalog = config.getCatalog();
43  m_assoc_radius = config.getAssocRadius();
44  m_assoc_mode = config.getAssocMode();
45 }
46 
48  if (property_id.getTypeId() == typeid(AssocMode)) {
49  return std::make_shared<AssocModeTask>(m_catalog, m_assoc_mode, m_assoc_radius);
50  } else {
51  return nullptr;
52  }
53 }
54 
55 }
PropertyId.h
Euclid::Configuration::ConfigManager::registerConfiguration
void registerConfiguration()
AssocMode.h
std::shared_ptr
STL class.
SourceXtractor::AssocModeTaskFactory::createTask
std::shared_ptr< Task > createTask(const PropertyId &property_id) const override
Returns a Task producing a Property corresponding to the given PropertyId.
Definition: AssocModeTaskFactory.cpp:47
SourceXtractor::AssocModeTaskFactory::reportConfigDependencies
void reportConfigDependencies(Euclid::Configuration::ConfigManager &manager) const override
Registers all the Configuration dependencies.
Definition: AssocModeTaskFactory.cpp:35
Euclid::Configuration::ConfigManager
Task.h
SourceXtractor::AssocModeConfig
Definition: AssocModeConfig.h:31
SourceXtractor::PropertyId::getTypeId
std::type_index getTypeId() const
Definition: PropertyId.h:66
Euclid::Configuration::ConfigManager::getConfiguration
T & getConfiguration()
AssocModeTaskFactory.h
SourceXtractor::AssocModeTaskFactory::m_assoc_radius
double m_assoc_radius
Definition: AssocModeTaskFactory.h:46
SourceXtractor::AssocModeTaskFactory::m_catalog
std::vector< AssocModeConfig::CatalogEntry > m_catalog
Definition: AssocModeTaskFactory.h:47
AssocModeConfig.h
SourceXtractor::PropertyId
Identifier used to set and retrieve properties.
Definition: PropertyId.h:40
AssocModeTask.h
SourceXtractor
Definition: Aperture.h:30
SourceXtractor::AssocMode
Definition: AssocMode.h:33
SourceXtractor::AssocModeTaskFactory::configure
void configure(Euclid::Configuration::ConfigManager &manager) override
Method which should initialize the object.
Definition: AssocModeTaskFactory.cpp:39
SourceXtractor::AssocModeTaskFactory::AssocModeTaskFactory
AssocModeTaskFactory()
Definition: AssocModeTaskFactory.cpp:33
SourceXtractor::AssocModeTaskFactory::m_assoc_mode
AssocModeConfig::AssocMode m_assoc_mode
Definition: AssocModeTaskFactory.h:45