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;
59 for (
const auto& row : input_table) {
66 attribute_ptr_vector.
begin(),
69 throw Elements::Exception() <<
"Parsing error while parsing the source with Id = " << source_id <<
" : "
70 << parsing_exception.
what();
72 throw Elements::Exception() <<
"Error while parsing the source with Id = " << source_id <<
" : " <<
e.what();
const char * what() const noexcept override
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.
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.
T emplace_back(T... args)