Alexandria 2.31.0
SDC-CH common library for the Euclid project
|
#include <PdfCatalogConfig.h>
Public Member Functions | |
PdfCatalogConfig (long manager_id) | |
virtual | ~PdfCatalogConfig ()=default |
void | addPdfColumn (const std::string &pdf_name, const std::string &col_name, std::vector< T > keys) |
void | initialize (const UserValues &) override |
Method which is called during the initialization phase. | |
![]() | |
Configuration (long manager_id) | |
Constructs a new Configuration instance. | |
virtual | ~Configuration ()=default |
Destructor. | |
virtual std::map< std::string, OptionDescriptionList > | getProgramOptions () |
Returns the program options defined by a specific configuration. | |
virtual void | preInitialize (const UserValues &args) |
Method which is called before the initialization phase. | |
virtual void | postInitialize (const UserValues &args) |
Method which is called after the initialization phase. | |
const std::set< std::type_index > & | getDependencies () |
Returns the dependencies of the configuration. | |
State & | getCurrentState () |
Returns the current state of the configuration. | |
State | getCurrentState () const |
Returns the current state of the configuration. | |
Private Attributes | |
std::map< std::string, std::vector< T > > | m_keys |
std::map< std::string, std::string > | m_column_names |
Additional Inherited Members | |
![]() | |
enum class | State { CONSTRUCTED , PRE_INITIALIZED , INITIALIZED , FINAL } |
Defines the different states the configuration object can be in. More... | |
using | OptionDescriptionList = std::vector< boost::program_options::option_description > |
using | UserValues = std::map< std::string, boost::program_options::variable_value > |
![]() | |
template<typename T > | |
void | declareDependency () |
Declares a Configuration as dependency. | |
template<typename T > | |
T & | getDependency () |
Returns a dependency. | |
template<typename T > | |
const T & | getDependency () const |
Adds to the configured catalog attributes to handle PDF columns
T | The value type of the PDF (i.e. double or float) |
Definition at line 41 of file PdfCatalogConfig.h.
|
inlineexplicit |
Definition at line 44 of file PdfCatalogConfig.h.
|
virtualdefault |
|
inline |
Definition at line 50 of file PdfCatalogConfig.h.
References std::map< K, T >::emplace(), Euclid::Configuration::Configuration::getCurrentState(), Euclid::Configuration::Configuration::INITIALIZED, Euclid::Configuration::PdfCatalogConfig< T >::m_column_names, Euclid::Configuration::PdfCatalogConfig< T >::m_keys, and std::move().
|
inlineoverridevirtual |
Method which is called during the initialization phase.
The Configuration implementations should override this method to implement their logic. When this method is called, all the configurations which are defined as dependencies by using the declareDependency() method are guaranteed to already be initialized.
args | The user parameters |
Reimplemented from Euclid::Configuration::Configuration.
Definition at line 58 of file PdfCatalogConfig.h.
References Euclid::Configuration::PdfCatalogConfig< T >::m_column_names, Euclid::Configuration::PdfCatalogConfig< T >::m_keys, and std::make_shared().
|
private |
Definition at line 65 of file PdfCatalogConfig.h.
Referenced by Euclid::Configuration::PdfCatalogConfig< T >::addPdfColumn(), and Euclid::Configuration::PdfCatalogConfig< T >::initialize().
|
private |
Definition at line 64 of file PdfCatalogConfig.h.
Referenced by Euclid::Configuration::PdfCatalogConfig< T >::addPdfColumn(), and Euclid::Configuration::PdfCatalogConfig< T >::initialize().