Alexandria  2.25.0
SDC-CH common library for the Euclid project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 ()
 
virtual std::unique_ptr
< Attribute
createAttribute (const Euclid::Table::Row &row)=0
 The createAttribute method for creating an Attribute from a Table row. More...
 

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

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

Definition at line 48 of file AttributeFromRow.h.

Member Function Documentation

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::SpectroscopicRedshiftAttributeFromRow, Euclid::SourceCatalog::PhotometryAttributeFromRow, Euclid::SourceCatalog::PdfFromRow< T >, and Euclid::SourceCatalog::TableRowAttributeFromRow.


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