34 namespace SourceCatalog {
41 if (source_id_index_ptr ==
nullptr) {
42 throw Elements::Exception() <<
"Column info does not have the column " << source_id_column_name;
60 for (
auto row : input_table) {
67 attribute_ptr_vector.
push_back(attribute_from_table_ptr->createAttribute(row));
70 throw Elements::Exception()<<
"Parsing error while parsing the source with Id = " << source_id <<
" : " << parsing_exception.
what();
virtual ~CatalogFromTable()
This type can be used together with boost::apply_visitor to cast boost::variant with an unknown under...
The Source class includes all information related to a sky source.
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)
Catalog contains a container of sources.
std::vector< std::shared_ptr< AttributeFromRow > > m_attribute_from_row_ptr_vector
const char * what() const noexceptoverride
Euclid::SourceCatalog::Catalog createCatalog(const Euclid::Table::Table &input_table)