SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SourceXtractor::OutputFactory Class Reference

#include <OutputFactory.h>

Inheritance diagram for SourceXtractor::OutputFactory:
Collaboration diagram for SourceXtractor::OutputFactory:

Public Member Functions

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

Private Attributes

std::shared_ptr< OutputRegistrym_output_registry
std::vector< std::stringm_output_properties
size_t m_flush_size
OutputConfig::OutputFileFormat m_output_format
std::string m_output_filename

Detailed Description

Definition at line 37 of file OutputFactory.h.

Constructor & Destructor Documentation

◆ OutputFactory()

SourceXtractor::OutputFactory::OutputFactory ( std::shared_ptr< OutputRegistry > output_registry)
inlineexplicit

Definition at line 41 of file OutputFactory.h.

References m_flush_size, m_output_format, and m_output_registry.

◆ ~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 63 of file OutputFactory.cpp.

References Euclid::Configuration::ConfigManager::getConfiguration(), m_flush_size, m_output_filename, m_output_format, m_output_properties, and std::system_category().

Here is the call graph for this function:

◆ createOutput()

std::shared_ptr< Output > SourceXtractor::OutputFactory::createOutput ( ) 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 59 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 57 of file OutputFactory.h.

Referenced by configure(), createOutput(), and OutputFactory().

◆ m_output_filename

std::string SourceXtractor::OutputFactory::m_output_filename
private

Definition at line 60 of file OutputFactory.h.

Referenced by configure(), and createOutput().

◆ m_output_format

OutputConfig::OutputFileFormat SourceXtractor::OutputFactory::m_output_format
private

Definition at line 59 of file OutputFactory.h.

Referenced by configure(), createOutput(), and OutputFactory().

◆ m_output_properties

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

Definition at line 56 of file OutputFactory.h.

Referenced by configure(), and createOutput().

◆ m_output_registry

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

Definition at line 55 of file OutputFactory.h.

Referenced by createOutput(), and OutputFactory().


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