Alexandria 2.31.0
SDC-CH common library for the Euclid project
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Euclid::SourceCatalog::AttributeFromRow Class Referenceabstract

Interface for building a source Attribute from a table Row. More...

#include <AttributeFromRow.h>

Inheritance diagram for Euclid::SourceCatalog::AttributeFromRow:
Inheritance graph
[legend]

Public Member Functions

virtual ~AttributeFromRow ()=default
 
virtual std::unique_ptr< AttributecreateAttribute (const Euclid::Table::Row &row)=0
 The createAttribute method for creating an Attribute from a Table row.
 

Detailed Description

Interface for building a source Attribute from a table Row.

This interface is defined to build source Attributes from table rows. The rules for formatting the specific Attribute from the general Table columns must be provided in the implementation constructors. They are then defined during object creation only once for the complete Table. The createAttribute method can then be called for each source, i.e., for each row of the Table.

Definition at line 45 of file AttributeFromRow.h.

Constructor & Destructor Documentation

◆ ~AttributeFromRow()

virtual Euclid::SourceCatalog::AttributeFromRow::~AttributeFromRow ( )
virtualdefault

Member Function Documentation

◆ createAttribute()

virtual std::unique_ptr< Attribute > Euclid::SourceCatalog::AttributeFromRow::createAttribute ( const Euclid::Table::Row row)
pure virtual

The createAttribute method for creating an Attribute from a Table row.

Parameters
rowA reference to a Row of a Table
Returns
A unique pointer to the newly created Attribute

Implemented in Euclid::SourceCatalog::PdfFromRow< T >, Euclid::SourceCatalog::PhotometryAttributeFromRow, Euclid::SourceCatalog::SpectroscopicRedshiftAttributeFromRow, and Euclid::SourceCatalog::TableRowAttributeFromRow.


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