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

#include <LdacWriter.h>

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

Public Member Functions

 ~LdacWriter () override=default
 
 LdacWriter (const std::string &filename, Euclid::Configuration::ConfigManager &manager)
 
void addComment (const std::string &comment) override
 
void notifySource (const SourceInterface &source)
 
- Public Member Functions inherited from Euclid::Table::TableWriter
 TableWriter ()=default
 
 TableWriter (TableWriter &&)=default
 
TableWriteroperator= (TableWriter &&)=default
 
 TableWriter (const TableWriter &)=delete
 
TableWriteroperator= (const TableWriter &)=delete
 
virtual ~TableWriter ()=default
 
void addData (const Table &table)
 

Protected Member Functions

void writeImHead ()
 
void init (const Euclid::Table::Table &table) override
 
void append (const Euclid::Table::Table &table) override
 

Private Attributes

Euclid::Configuration::ConfigManagerm_config_manager
 
std::string m_filename
 
std::unique_ptr< Euclid::Table::FitsWriterm_objects_writer
 
std::vector< std::stringm_comments
 
DetectionImage::PixelType m_rms
 

Detailed Description

Definition at line 28 of file LdacWriter.h.

Constructor & Destructor Documentation

◆ ~LdacWriter()

SourceXtractor::LdacWriter::~LdacWriter ( )
overridedefault

◆ LdacWriter()

SourceXtractor::LdacWriter::LdacWriter ( const std::string filename,
Euclid::Configuration::ConfigManager manager 
)

Definition at line 42 of file LdacWriter.cpp.

Member Function Documentation

◆ addComment()

void SourceXtractor::LdacWriter::addComment ( const std::string comment)
overridevirtual

Implements Euclid::Table::TableWriter.

Definition at line 46 of file LdacWriter.cpp.

References std::vector< T >::emplace_back(), m_comments, and m_objects_writer.

Here is the call graph for this function:

◆ append()

void SourceXtractor::LdacWriter::append ( const Euclid::Table::Table table)
overrideprotectedvirtual

Implements Euclid::Table::TableWriter.

Definition at line 179 of file LdacWriter.cpp.

References Euclid::Table::TableWriter::addData(), and m_objects_writer.

Here is the call graph for this function:

◆ init()

void SourceXtractor::LdacWriter::init ( const Euclid::Table::Table table)
overrideprotectedvirtual

Implements Euclid::Table::TableWriter.

Definition at line 166 of file LdacWriter.cpp.

References Euclid::Table::FitsWriter::addComment(), std::vector< T >::clear(), m_comments, m_filename, m_objects_writer, Euclid::Table::FitsWriter::setHduName(), and writeImHead().

Here is the call graph for this function:

◆ notifySource()

void SourceXtractor::LdacWriter::notifySource ( const SourceInterface source)

Definition at line 55 of file LdacWriter.cpp.

References SourceXtractor::SourceInterface::getProperty(), m_objects_writer, and m_rms.

Here is the call graph for this function:

◆ writeImHead()

void SourceXtractor::LdacWriter::writeImHead ( )
protected

Definition at line 125 of file LdacWriter.cpp.

References std::string::at(), std::vector< T >::emplace_back(), SourceXtractor::generateHeader(), SourceXtractor::generateHistory(), Euclid::Configuration::ConfigManager::getConfiguration(), m_config_manager, m_filename, and m_rms.

Referenced by init().

Here is the call graph for this function:

Member Data Documentation

◆ m_comments

std::vector<std::string> SourceXtractor::LdacWriter::m_comments
private

Definition at line 49 of file LdacWriter.h.

Referenced by addComment(), and init().

◆ m_config_manager

Euclid::Configuration::ConfigManager& SourceXtractor::LdacWriter::m_config_manager
private

Definition at line 46 of file LdacWriter.h.

Referenced by writeImHead().

◆ m_filename

std::string SourceXtractor::LdacWriter::m_filename
private

Definition at line 47 of file LdacWriter.h.

Referenced by init(), and writeImHead().

◆ m_objects_writer

std::unique_ptr<Euclid::Table::FitsWriter> SourceXtractor::LdacWriter::m_objects_writer
private

Definition at line 48 of file LdacWriter.h.

Referenced by addComment(), append(), init(), and notifySource().

◆ m_rms

DetectionImage::PixelType SourceXtractor::LdacWriter::m_rms
private

Definition at line 50 of file LdacWriter.h.

Referenced by notifySource(), and writeImHead().


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