SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
SourceXtractor::LdacOutput Class Reference

#include <LdacOutput.h>

Inheritance diagram for SourceXtractor::LdacOutput:
Inheritance graph
[legend]
Collaboration diagram for SourceXtractor::LdacOutput:
Collaboration graph
[legend]

Public Member Functions

 LdacOutput (const std::string &filename, SourceToRowConverter source_to_row, size_t flush_size)
 
void nextPart () override
 
void outputSource (const SourceInterface &source) override
 
- Public Member Functions inherited from SourceXtractor::FlushableOutput
 FlushableOutput (SourceToRowConverter source_to_row, size_t flush_size)
 
virtual ~FlushableOutput ()=default
 
size_t flush () override
 
- Public Member Functions inherited from SourceXtractor::Output
virtual ~Output ()=default
 
void receiveSource (std::unique_ptr< SourceGroupInterface > source_group) override
 
void receiveProcessSignal (const ProcessSourcesEvent &) override
 
- Public Member Functions inherited from SourceXtractor::PipelineReceiver< SourceGroupInterface >
virtual ~PipelineReceiver ()=default
 

Protected Member Functions

void writeRows (const std::vector< Euclid::Table::Row > &rows) override
 

Private Member Functions

void writeHeaders ()
 

Private Attributes

std::string m_filename
 
int m_part_nb
 
std::shared_ptr< Euclid::Table::FitsWriterm_fits_writer
 
std::map< std::string, MetadataEntrym_image_metadata {}
 
DetectionImage::PixelType m_rms
 
double m_gain
 

Additional Inherited Members

- Public Types inherited from SourceXtractor::FlushableOutput
using SourceToRowConverter = std::function<Euclid::Table::Row(const SourceInterface&)>
 

Detailed Description

Definition at line 17 of file LdacOutput.h.

Constructor & Destructor Documentation

◆ LdacOutput()

SourceXtractor::LdacOutput::LdacOutput ( const std::string & filename,
SourceToRowConverter source_to_row,
size_t flush_size )
inline

Definition at line 20 of file LdacOutput.h.

Member Function Documentation

◆ nextPart()

void SourceXtractor::LdacOutput::nextPart ( )
overridevirtual

Implements SourceXtractor::Output.

Definition at line 185 of file LdacOutput.cpp.

◆ outputSource()

void SourceXtractor::LdacOutput::outputSource ( const SourceInterface & source)
overridevirtual

Reimplemented from SourceXtractor::FlushableOutput.

Definition at line 117 of file LdacOutput.cpp.

◆ writeHeaders()

void SourceXtractor::LdacOutput::writeHeaders ( )
private

Definition at line 142 of file LdacOutput.cpp.

References std::accumulate(), and std::move().

Here is the call graph for this function:

◆ writeRows()

void SourceXtractor::LdacOutput::writeRows ( const std::vector< Euclid::Table::Row > & rows)
inlineoverrideprotectedvirtual

Implements SourceXtractor::FlushableOutput.

Definition at line 29 of file LdacOutput.h.

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

Here is the call graph for this function:

Member Data Documentation

◆ m_filename

std::string SourceXtractor::LdacOutput::m_filename
private

Definition at line 37 of file LdacOutput.h.

◆ m_fits_writer

std::shared_ptr<Euclid::Table::FitsWriter> SourceXtractor::LdacOutput::m_fits_writer
private

Definition at line 40 of file LdacOutput.h.

Referenced by writeRows().

◆ m_gain

double SourceXtractor::LdacOutput::m_gain
private

Definition at line 44 of file LdacOutput.h.

◆ m_image_metadata

std::map<std::string, MetadataEntry> SourceXtractor::LdacOutput::m_image_metadata {}
private

Definition at line 42 of file LdacOutput.h.

◆ m_part_nb

int SourceXtractor::LdacOutput::m_part_nb
private

Definition at line 38 of file LdacOutput.h.

◆ m_rms

DetectionImage::PixelType SourceXtractor::LdacOutput::m_rms
private

Definition at line 43 of file LdacOutput.h.


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