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

#include <OutputFactory.h>

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

Public Member Functions

 OutputFactory (std::shared_ptr< OutputRegistry > output_registry)
 
virtual ~OutputFactory ()=default
 Destructor. More...
 
std::unique_ptr< OutputgetOutput () 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::shared_ptr< OutputRegistrym_output_registry
 
TableOutput::TableHandler m_table_handler
 
std::vector< std::stringm_output_properties
 
size_t m_flush_size
 

Detailed Description

Definition at line 37 of file OutputFactory.h.

Constructor & Destructor Documentation

◆ OutputFactory()

SourceXtractor::OutputFactory::OutputFactory ( std::shared_ptr< OutputRegistry output_registry)
inline

Definition at line 41 of file OutputFactory.h.

◆ ~OutputFactory()

virtual SourceXtractor::OutputFactory::~OutputFactory ( )
virtualdefault

Destructor.

Member Function Documentation

◆ configure()

void SourceXtractor::OutputFactory::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 53 of file OutputFactory.cpp.

References Euclid::Table::TableWriter::addData(), SourceXtractor::OutputConfig::ASCII, e, SourceXtractor::OutputConfig::FITS, Euclid::Configuration::ConfigManager::getConfiguration(), m_flush_size, m_output_properties, m_table_handler, std::move(), Euclid::Table::FitsWriter::setHduName(), and std::system_category().

Here is the call graph for this function:

◆ getOutput()

std::unique_ptr< Output > SourceXtractor::OutputFactory::getOutput ( ) const

◆ reportConfigDependencies()

void SourceXtractor::OutputFactory::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 49 of file OutputFactory.cpp.

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

Here is the call graph for this function:

Member Data Documentation

◆ m_flush_size

size_t SourceXtractor::OutputFactory::m_flush_size
private

Definition at line 59 of file OutputFactory.h.

Referenced by configure(), and getOutput().

◆ m_output_properties

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

Definition at line 58 of file OutputFactory.h.

Referenced by configure(), and getOutput().

◆ m_output_registry

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

Definition at line 56 of file OutputFactory.h.

Referenced by getOutput().

◆ m_table_handler

TableOutput::TableHandler SourceXtractor::OutputFactory::m_table_handler
private

Definition at line 57 of file OutputFactory.h.

Referenced by configure(), and getOutput().


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