Alexandria  2.16
Please provide a description of the project.
Configuration.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012-2020 Euclid Science Ground Segment
3  *
4  * This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General
5  * Public License as published by the Free Software Foundation; either version 3.0 of the License, or (at your option)
6  * any later version.
7  *
8  * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
9  * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
10  * details.
11  *
12  * You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to
13  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
14  */
15 
23 
24 namespace Euclid {
25 namespace Configuration {
26 
27 Configuration::Configuration(long manager_id) : m_manager_id{manager_id} {
28 }
29 
30 std::map<std::string, Configuration::OptionDescriptionList> Configuration::getProgramOptions() {
31  return std::map<std::string, Configuration::OptionDescriptionList>{};
32 }
33 
34 void Configuration::preInitialize(const UserValues&) { }
35 
36 void Configuration::initialize(const UserValues&) { }
37 
38 void Configuration::postInitialize(const UserValues&) { }
39 
40 const std::set<std::type_index>& Configuration::getDependencies() {
41  return m_dependencies;
42 }
43 
44 Configuration::State& Configuration::getCurrentState() {
45  return m_state;
46 }
47 
48 Configuration::State Configuration::getCurrentState() const {
49  return m_state;
50 }
51 } // Configuration namespace
52 } // Euclid namespace
53 
54 
55 
Superclass of all configuration classes.
Definition: Configuration.h:45
std::set< std::type_index > m_dependencies
State
Defines the different states the configuration object can be in.
Definition: Configuration.h:50
std::map< std::string, boost::program_options::variable_value > UserValues
Definition: Configuration.h:62