32 namespace SourceCatalog {
39 if (source_id_index_ptr ==
nullptr) {
40 throw Elements::Exception() <<
"Column info does not have the column " << source_id_column_name;
59 for (
auto row : input_table) {
66 attribute_ptr_vector.
push_back(attribute_from_table_ptr->createAttribute(row));
This type can be used together with boost::apply_visitor to cast boost::variant with an unknown under...
std::vector< std::shared_ptr< AttributeFromRow > > m_attribute_from_row_ptr_vector
Euclid::SourceCatalog::Catalog createCatalog(const Euclid::Table::Table &input_table)
CatalogFromTable(std::shared_ptr< Euclid::Table::ColumnInfo > column_info_ptr, const std::string &source_id_column_name, std::vector< std::shared_ptr< AttributeFromRow >> attribute_from_row_ptr_vector)
virtual ~CatalogFromTable()
Catalog contains a container of sources.
The Source class includes all information related to a sky source.
std::unique_ptr< std::size_t > find(const std::string &name) const
Returns the index of a column, given the name of it, or nullptr if there is no column with this name.