SourceXtractorPlusPlus 0.19.2
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
 
void outputSource (const SourceInterface &source) 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
 
virtual void outputSource (const SourceInterface &source)=0
 
virtual size_t flush ()=0
 
virtual void nextPart ()=0
 
- Public Member Functions inherited from SourceXtractor::PipelineReceiver< SourceGroupInterface >
virtual ~PipelineReceiver ()=default
 
virtual void receiveSource (std::unique_ptr< SourceGroupInterface > source)=0
 
virtual void receiveProcessSignal (const ProcessSourcesEvent &event)=0
 

Protected Member Functions

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

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.

References m_fits_writer, and m_part_nb.

◆ outputSource()

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

◆ writeHeaders()

void SourceXtractor::LdacOutput::writeHeaders ( )
private

◆ 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.

Referenced by outputSource(), and writeHeaders().

◆ 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 nextPart(), outputSource(), and writeRows().

◆ m_gain

double SourceXtractor::LdacOutput::m_gain
private

Definition at line 44 of file LdacOutput.h.

Referenced by outputSource(), and writeHeaders().

◆ m_image_metadata

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

Definition at line 42 of file LdacOutput.h.

Referenced by outputSource(), and writeHeaders().

◆ m_part_nb

int SourceXtractor::LdacOutput::m_part_nb
private

Definition at line 38 of file LdacOutput.h.

Referenced by nextPart(), outputSource(), and writeHeaders().

◆ m_rms

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

Definition at line 43 of file LdacOutput.h.

Referenced by outputSource(), and writeHeaders().


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