SourceXtractorPlusPlus  0.16
Please provide a description of the project.
Public Member Functions | Private Attributes | List of all members
SourceXtractor::MeasurementFactory Class Reference

#include <MeasurementFactory.h>

Inheritance diagram for SourceXtractor::MeasurementFactory:
[legend]
Collaboration diagram for SourceXtractor::MeasurementFactory:
[legend]

Public Member Functions

 MeasurementFactory (std::shared_ptr< OutputRegistry > output_registry)
 
std::unique_ptr< MeasurementgetMeasurement () const
 
void configure (Euclid::Configuration::ConfigManager &manager) override
 Method which should initialize the object. More...
 
void reportConfigDependencies (Euclid::Configuration::ConfigManager &manager) const override
 Registers all the Configuration dependencies. More...
 
- Public Member Functions inherited from SourceXtractor::Configurable
virtual ~Configurable ()=default
 Destructor. More...
 

Private Attributes

std::vector< std::stringm_output_properties
 
std::shared_ptr< OutputRegistrym_output_registry
 
std::shared_ptr< Euclid::ThreadPoolm_thread_pool
 
unsigned int m_threads_nb
 
unsigned int m_max_queue
 

Detailed Description

Definition at line 39 of file MeasurementFactory.h.

Constructor & Destructor Documentation

◆ MeasurementFactory()

SourceXtractor::MeasurementFactory::MeasurementFactory ( std::shared_ptr< OutputRegistry output_registry)
inlineexplicit

Definition at line 43 of file MeasurementFactory.h.

Member Function Documentation

◆ configure()

void SourceXtractor::MeasurementFactory::configure ( Euclid::Configuration::ConfigManager manager)
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.

Parameters
managerThe manager to get the Configurations from

Implements SourceXtractor::Configurable.

Definition at line 48 of file MeasurementFactory.cpp.

References Euclid::Configuration::ConfigManager::getConfiguration(), m_max_queue, m_output_properties, m_thread_pool, and m_threads_nb.

Here is the call graph for this function:

◆ getMeasurement()

std::unique_ptr< Measurement > SourceXtractor::MeasurementFactory::getMeasurement ( ) const

◆ reportConfigDependencies()

void SourceXtractor::MeasurementFactory::reportConfigDependencies ( Euclid::Configuration::ConfigManager manager) const
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

Parameters
managerThe manager to register the dependencies to

Implements SourceXtractor::Configurable.

Definition at line 43 of file MeasurementFactory.cpp.

References Euclid::Configuration::ConfigManager::registerConfiguration().

Here is the call graph for this function:

Member Data Documentation

◆ m_max_queue

unsigned int SourceXtractor::MeasurementFactory::m_max_queue
private

Definition at line 58 of file MeasurementFactory.h.

Referenced by configure(), and getMeasurement().

◆ m_output_properties

std::vector<std::string> SourceXtractor::MeasurementFactory::m_output_properties
private

Definition at line 54 of file MeasurementFactory.h.

Referenced by configure(), and getMeasurement().

◆ m_output_registry

std::shared_ptr<OutputRegistry> SourceXtractor::MeasurementFactory::m_output_registry
private

Definition at line 55 of file MeasurementFactory.h.

Referenced by getMeasurement().

◆ m_thread_pool

std::shared_ptr<Euclid::ThreadPool> SourceXtractor::MeasurementFactory::m_thread_pool
private

Definition at line 56 of file MeasurementFactory.h.

Referenced by configure(), and getMeasurement().

◆ m_threads_nb

unsigned int SourceXtractor::MeasurementFactory::m_threads_nb
private

Definition at line 58 of file MeasurementFactory.h.

Referenced by configure(), and getMeasurement().


The documentation for this class was generated from the following files: