Alexandria 2.31.0
SDC-CH common library for the Euclid project
Loading...
Searching...
No Matches
Classes | Functions | Variables
Euclid::Configuration Namespace Reference

Classes

class  CatalogConfig
 Configuration class for enabling catalog input. More...
 
class  ConfigManager
 Manages a set of configuration classes. More...
 
class  Configuration
 Superclass of all configuration classes. More...
 
class  PdfCatalogConfig
 
class  PhotometricBandMappingConfig
 Configuration class which provides the information of the mapping between photometric bands and column names. More...
 
class  PhotometryCatalogConfig
 Configuration class for enabling photometric catalog input. More...
 
class  ProgramOptionsHelper
 Class providing some helper methods for managing boost program options. More...
 
class  SpecZCatalogConfig
 Configuration class for enabling SpecZ catalog input. More...
 

Functions

long getUniqueManagerId () noexcept
 
std::vector< std::type_indexhasCircularDependencies (const std::map< std::type_index, std::set< std::type_index > > &dependency_map, const std::type_index &root, const std::pair< const std::type_index, std::set< std::type_index > > &config_pair)
 
static void cleanupNonRegisteredDependencies (std::map< std::type_index, std::set< std::type_index > > &dep_map, const std::map< std::type_index, std::unique_ptr< Configuration > > &dict)
 
static void recursiveInitialization (const std::map< std::type_index, std::unique_ptr< Configuration > > &dictionary, const std::map< std::type_index, std::set< std::type_index > > &dependency_map, const std::map< std::string, po::variable_value > &user_values, const std::type_index &config)
 
static fs::path getMappingFileFromOptions (const Configuration::UserValues &args, const fs::path &base_dir)
 
static std::tuple< PhotometricBandMappingConfig::MappingMap, PhotometricBandMappingConfig::UpperLimitThresholdMap, PhotometricBandMappingConfig::ConvertFromMagMapparseFile (fs::path filename)
 
static std::string getFluxColumnFromOptions (const Configuration::UserValues &args, const Table::ColumnInfo &column_info)
 
static std::string getErrColumnFromOptions (const Configuration::UserValues &args, const Table::ColumnInfo &column_info)
 

Variables

static Elements::Logging logger = Elements::Logging::getLogger("CatalogConfig")
 
static const std::string INPUT_CATALOG_FILE {"input-catalog-file"}
 
static const std::string INPUT_CATALOG_FORMAT {"input-catalog-format"}
 
static const std::string SOURCE_ID_COLUMN_NAME {"source-id-column-name"}
 
static const std::string SOURCE_ID_COLUMN_INDEX {"source-id-column-index"}
 
static Elements::Logging logger = Elements::Logging::getLogger("ConfigManager")
 
static std::map< long, std::unique_ptr< ConfigManager > > manager_map {}
 
static Elements::Logging logger = Elements::Logging::getLogger("PhotometricBandMappingConfig")
 
static const std::string FILTER_MAPPING_FILE {"filter-mapping-file"}
 
static const std::string EXCLUDE_FILTER {"exclude-filter"}
 
static Elements::Logging logger = Elements::Logging::getLogger("PhotometryCatalogConfig")
 
static const std::string MISSING_PHOTOMETRY_FLAG {"missing-photometry-flag"}
 
static const std::string ENABLE_UPPER_LIMIT {"enable-upper-limit"}
 
static const std::string UPPER_LIMIT_USE_THRESHOLD_FLAG {"upper-limit-use-threshold-flag"}
 
static const std::string SPECZ_COLUMN_NAME {"spec-z-column-name"}
 
static const std::string SPECZ_COLUMN_INDEX {"spec-z-column-index"}
 
static const std::string SPECZ_ERR_COLUMN_NAME {"spec-z-err-column-name"}
 
static const std::string SPECZ_ERR_COLUMN_INDEX {"spec-z-err-column-index"}
 
static long last_manager_id = 0
 

Function Documentation

◆ cleanupNonRegisteredDependencies()

static void Euclid::Configuration::cleanupNonRegisteredDependencies ( std::map< std::type_index, std::set< std::type_index > > &  dep_map,
const std::map< std::type_index, std::unique_ptr< Configuration > > &  dict 
)
static

Definition at line 71 of file ConfigManager.cpp.

References Elements::Logging::debug(), std::vector< T >::emplace_back(), and logger.

Referenced by Euclid::Configuration::ConfigManager::closeRegistration().

Here is the call graph for this function:

◆ getErrColumnFromOptions()

static std::string Euclid::Configuration::getErrColumnFromOptions ( const Configuration::UserValues args,
const Table::ColumnInfo column_info 
)
static

◆ getFluxColumnFromOptions()

static std::string Euclid::Configuration::getFluxColumnFromOptions ( const Configuration::UserValues args,
const Table::ColumnInfo column_info 
)
static

◆ getMappingFileFromOptions()

static fs::path Euclid::Configuration::getMappingFileFromOptions ( const Configuration::UserValues args,
const fs::path &  base_dir 
)
static

Definition at line 57 of file PhotometricBandMappingConfig.cpp.

References std::map< K, T >::at(), and FILTER_MAPPING_FILE.

Referenced by Euclid::Configuration::PhotometricBandMappingConfig::initialize().

Here is the call graph for this function:

◆ getUniqueManagerId()

long Euclid::Configuration::getUniqueManagerId ( )
noexcept

Generate an unique ID for the configuration manager

Definition at line 33 of file Utils.cpp.

References last_manager_id, and std::chrono::system_clock::now().

Here is the call graph for this function:

◆ hasCircularDependencies()

std::vector< std::type_index > Euclid::Configuration::hasCircularDependencies ( const std::map< std::type_index, std::set< std::type_index > > &  dependency_map,
const std::type_index root,
const std::pair< const std::type_index, std::set< std::type_index > > &  config_pair 
)

Definition at line 53 of file ConfigManager.cpp.

References std::back_inserter(), std::copy(), and hasCircularDependencies().

Referenced by Euclid::Configuration::ConfigManager::closeRegistration(), and hasCircularDependencies().

Here is the call graph for this function:

◆ parseFile()

◆ recursiveInitialization()

static void Euclid::Configuration::recursiveInitialization ( const std::map< std::type_index, std::unique_ptr< Configuration > > &  dictionary,
const std::map< std::type_index, std::set< std::type_index > > &  dependency_map,
const std::map< std::string, po::variable_value > &  user_values,
const std::type_index config 
)
static

Definition at line 146 of file ConfigManager.cpp.

References recursiveInitialization().

Referenced by Euclid::Configuration::ConfigManager::initialize(), and recursiveInitialization().

Here is the call graph for this function:

Variable Documentation

◆ ENABLE_UPPER_LIMIT

const std::string Euclid::Configuration::ENABLE_UPPER_LIMIT {"enable-upper-limit"}
static

◆ EXCLUDE_FILTER

const std::string Euclid::Configuration::EXCLUDE_FILTER {"exclude-filter"}
static

◆ FILTER_MAPPING_FILE

const std::string Euclid::Configuration::FILTER_MAPPING_FILE {"filter-mapping-file"}
static

◆ INPUT_CATALOG_FILE

const std::string Euclid::Configuration::INPUT_CATALOG_FILE {"input-catalog-file"}
static

◆ INPUT_CATALOG_FORMAT

const std::string Euclid::Configuration::INPUT_CATALOG_FORMAT {"input-catalog-format"}
static

◆ last_manager_id

long Euclid::Configuration::last_manager_id = 0
static

Definition at line 31 of file Utils.cpp.

Referenced by getUniqueManagerId().

◆ logger [1/4]

Elements::Logging Euclid::Configuration::logger = Elements::Logging::getLogger("CatalogConfig")
static

◆ logger [2/4]

Elements::Logging Euclid::Configuration::logger = Elements::Logging::getLogger("ConfigManager")
static

Definition at line 35 of file ConfigManager.cpp.

◆ logger [3/4]

Elements::Logging Euclid::Configuration::logger = Elements::Logging::getLogger("PhotometricBandMappingConfig")
static

Definition at line 41 of file PhotometricBandMappingConfig.cpp.

◆ logger [4/4]

Elements::Logging Euclid::Configuration::logger = Elements::Logging::getLogger("PhotometryCatalogConfig")
static

Definition at line 37 of file PhotometryCatalogConfig.cpp.

◆ manager_map

std::map<long, std::unique_ptr<ConfigManager> > Euclid::Configuration::manager_map {}
static

◆ MISSING_PHOTOMETRY_FLAG

const std::string Euclid::Configuration::MISSING_PHOTOMETRY_FLAG {"missing-photometry-flag"}
static

◆ SOURCE_ID_COLUMN_INDEX

const std::string Euclid::Configuration::SOURCE_ID_COLUMN_INDEX {"source-id-column-index"}
static

◆ SOURCE_ID_COLUMN_NAME

const std::string Euclid::Configuration::SOURCE_ID_COLUMN_NAME {"source-id-column-name"}
static

◆ SPECZ_COLUMN_INDEX

const std::string Euclid::Configuration::SPECZ_COLUMN_INDEX {"spec-z-column-index"}
static

◆ SPECZ_COLUMN_NAME

const std::string Euclid::Configuration::SPECZ_COLUMN_NAME {"spec-z-column-name"}
static

◆ SPECZ_ERR_COLUMN_INDEX

const std::string Euclid::Configuration::SPECZ_ERR_COLUMN_INDEX {"spec-z-err-column-index"}
static

◆ SPECZ_ERR_COLUMN_NAME

const std::string Euclid::Configuration::SPECZ_ERR_COLUMN_NAME {"spec-z-err-column-name"}
static

◆ UPPER_LIMIT_USE_THRESHOLD_FLAG

const std::string Euclid::Configuration::UPPER_LIMIT_USE_THRESHOLD_FLAG {"upper-limit-use-threshold-flag"}
static