Alexandria
2.14.1
Please provide a description of the project.
|
Go to the documentation of this file.
32 namespace po = boost::program_options;
33 namespace fs = boost::filesystem;
36 namespace Configuration {
44 declareDependency<CatalogConfig>();
45 declareDependency<PhotometricBandMappingConfig>();
49 return {{
"Input catalog options", {
51 "The value passed in the flux indicating that the photometry is missing, if the flag is not provided the functionality is disabled"},
53 "Define if the catalog contains flux upper limit (YES/NO by default NO)"}
62 double missing_photo_flag =-99.;
69 auto filter_name_mapping = getDependency<PhotometricBandMappingConfig>().getPhotometricBandMapping();
70 auto column_info = getDependency<CatalogConfig>().getColumnInfo();
80 getDependency<CatalogConfig>().addAttributeHandler(
std::move(handler_ptr));
87 throw Elements::Exception() <<
"isMissingPhotometryEnabled() call to uninitialized PhotometryCatalogConfig";
97 throw Elements::Exception() <<
"isUpperLimitEnabled() call to uninitialized PhotometryCatalogConfig";
bool m_upper_limit_enabled
std::map< std::string, OptionDescriptionList > getProgramOptions() override
Returns the program options defined by the PhotometryCatalogConfig.
static const std::string ENABLE_UPPER_LIMIT
Implementation of the AttributeFromRow for a photometry attribute. This class implements the createAt...
static Elements::Logging logger
void initialize(const UserValues &args) override
Adds the PhotometryAttributeFromRow handler to the CatalogConfig.
static const std::string MISSING_PHOTOMETRY_FLAG
bool m_missing_photometry_enabled
bool isMissingPhotometryEnabled()
void info(const std::string &logMessage)
static Logging getLogger(const std::string &name="")
bool isUpperLimitEnabled()
PhotometryCatalogConfig(long manager_id)
Constructs a new PhotometryCatalogConfig object.
Superclass of all configuration classes.
State & getCurrentState()
Returns the current state of the configuration.
@ INITIALIZED
The initialize() method has been called.