22 #ifndef _CONFIGURATION_CATALOGCONFIG_H 23 #define _CONFIGURATION_CATALOGCONFIG_H 28 #include <boost/filesystem.hpp> 144 void setBaseDir(
const boost::filesystem::path& base_dir);
229 const boost::filesystem::path&
getFilename()
const;
Configuration class for enabling catalog input.
SourceCatalog::Catalog readAsCatalog() const
Returns the Catalog object.
std::shared_ptr< Table::ColumnInfo > getColumnInfo() const
Superclass of all configuration classes.
void addAttributeHandler(std::shared_ptr< SourceCatalog::AttributeFromRow > handler)
Adds an attribute handler which will be used for adding attributes at the catalog objects...
boost::filesystem::path m_base_dir
const boost::filesystem::path & getFilename() const
Returns the filename of the input catalog.
void initialize(const UserValues &args) override
Initializes the CatalogConfig instance.
virtual ~CatalogConfig()=default
Destructor.
std::vector< std::shared_ptr< SourceCatalog::AttributeFromRow > > m_attribute_handlers
Table::Table readAsTable() const
Returns the catalog as a Table::Table object.
void preInitialize(const UserValues &args) override
Checks that all the options are valid. See the exceptions thrown for a detailed list of the checks...
std::string m_id_column_name
std::unique_ptr< Table::TableReader > getTableReader() const
void setBaseDir(const boost::filesystem::path &base_dir)
Sets the directory used when resolving relative paths.
TableToCatalogConverter getTableToCatalogConverter() const
boost::filesystem::path m_filename
CatalogConfig(long manager_id)
Constructs a new CatalogConfig object.
std::shared_ptr< Table::ColumnInfo > m_column_info
Catalog contains a container of sources.
std::map< std::string, OptionDescriptionList > getProgramOptions() override
Returns the program options defined by the CatalogConfig.
std::string getIdColumn() const