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

#include <OutputConfig.h>

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

Public Types

enum  OutputFileFormat { OutputFileFormat::ASCII, OutputFileFormat::FITS, OutputFileFormat::FITS_LDAC }
 
- Public Types inherited from Euclid::Configuration::Configuration
enum  State { State::CONSTRUCTED, State::PRE_INITIALIZED, State::INITIALIZED, State::FINAL }
 
typedef std::vector< boost::program_options::option_description > OptionDescriptionList
 
typedef std::map< std::string, boost::program_options::variable_value > UserValues
 

Public Member Functions

virtual ~OutputConfig ()=default
 Destructor. More...
 
 OutputConfig (long manager_id)
 Constructor. More...
 
std::map< std::string, Configuration::OptionDescriptionListgetProgramOptions () override
 
void preInitialize (const UserValues &args) override
 
void initialize (const UserValues &args) override
 
std::string getOutputFile ()
 
OutputFileFormat getOutputFileFormat ()
 
const std::vector< std::stringgetOutputProperties ()
 
size_t getFlushSize () const
 
- Public Member Functions inherited from Euclid::Configuration::Configuration
 Configuration (long manager_id)
 
virtual ~Configuration ()=default
 
virtual void postInitialize (const UserValues &args)
 
const std::set< std::type_index > & getDependencies ()
 
StategetCurrentState ()
 
State getCurrentState () const
 

Private Attributes

std::string m_out_file
 
OutputFileFormat m_format
 
std::vector< std::stringm_output_properties
 
size_t m_flush_size
 

Additional Inherited Members

- Protected Member Functions inherited from Euclid::Configuration::Configuration
void declareDependency ()
 
T & getDependency ()
 
const T & getDependency () const
 

Detailed Description

Definition at line 36 of file OutputConfig.h.

Member Enumeration Documentation

◆ OutputFileFormat

Enumerator
ASCII 
FITS 
FITS_LDAC 

Definition at line 40 of file OutputConfig.h.

Constructor & Destructor Documentation

◆ ~OutputConfig()

virtual SourceXtractor::OutputConfig::~OutputConfig ( )
virtualdefault

Destructor.

◆ OutputConfig()

SourceXtractor::OutputConfig::OutputConfig ( long  manager_id)

Constructor.

Definition at line 48 of file OutputConfig.cpp.

Member Function Documentation

◆ getFlushSize()

size_t SourceXtractor::OutputConfig::getFlushSize ( ) const

Definition at line 100 of file OutputConfig.cpp.

References m_flush_size.

◆ getOutputFile()

std::string SourceXtractor::OutputConfig::getOutputFile ( )

Definition at line 88 of file OutputConfig.cpp.

References m_out_file.

◆ getOutputFileFormat()

OutputConfig::OutputFileFormat SourceXtractor::OutputConfig::getOutputFileFormat ( )

Definition at line 92 of file OutputConfig.cpp.

References m_format.

◆ getOutputProperties()

const std::vector< std::string > SourceXtractor::OutputConfig::getOutputProperties ( )

◆ getProgramOptions()

std::map< std::string, Configuration::OptionDescriptionList > SourceXtractor::OutputConfig::getProgramOptions ( )
overridevirtual

Reimplemented from Euclid::Configuration::Configuration.

Definition at line 52 of file OutputConfig.cpp.

References std::string::c_str(), SourceXtractor::OUTPUT_FILE, SourceXtractor::OUTPUT_FILE_FORMAT, SourceXtractor::OUTPUT_FLUSH_SIZE, and SourceXtractor::OUTPUT_PROPERTIES.

Here is the call graph for this function:

◆ initialize()

void SourceXtractor::OutputConfig::initialize ( const UserValues args)
overridevirtual

Reimplemented from Euclid::Configuration::Configuration.

Definition at line 72 of file OutputConfig.cpp.

References std::map< K, T >::at(), std::vector< T >::emplace_back(), SourceXtractor::format_map, std::getline(), m_flush_size, m_format, m_out_file, m_output_properties, SourceXtractor::OUTPUT_FILE, SourceXtractor::OUTPUT_FILE_FORMAT, SourceXtractor::OUTPUT_FLUSH_SIZE, and SourceXtractor::OUTPUT_PROPERTIES.

Here is the call graph for this function:

◆ preInitialize()

void SourceXtractor::OutputConfig::preInitialize ( const UserValues args)
overridevirtual

Reimplemented from Euclid::Configuration::Configuration.

Definition at line 65 of file OutputConfig.cpp.

References std::map< K, T >::at(), SourceXtractor::format_map, and SourceXtractor::OUTPUT_FILE_FORMAT.

Here is the call graph for this function:

Member Data Documentation

◆ m_flush_size

size_t SourceXtractor::OutputConfig::m_flush_size
private

Definition at line 69 of file OutputConfig.h.

Referenced by getFlushSize(), and initialize().

◆ m_format

OutputFileFormat SourceXtractor::OutputConfig::m_format
private

Definition at line 67 of file OutputConfig.h.

Referenced by getOutputFileFormat(), and initialize().

◆ m_out_file

std::string SourceXtractor::OutputConfig::m_out_file
private

Definition at line 66 of file OutputConfig.h.

Referenced by getOutputFile(), and initialize().

◆ m_output_properties

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

Definition at line 68 of file OutputConfig.h.

Referenced by getOutputProperties(), and initialize().


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