9 #ifndef FCF_DEVMGR_COMMON_DATA_CONTEXT_HPP_
10 #define FCF_DEVMGR_COMMON_DATA_CONTEXT_HPP_
13 #include <unordered_map>
16 #include <rad/topicPub.hpp>
95 rad::DbAdapter& db_adapter,
96 boost::asio::io_service& ios);
125 void SetState(
const std::string state);
135 rad::DbAdapter& m_runtime_db;
137 boost::asio::io_service& m_ios;
149 #endif // DEVMGR_COMMON_DATA_CONTEXT_HPP_
const std::string SRV_SUBSTATE_ENABLING_STR
Definition: dataContext.hpp:45
IConfig class header file.
DbInterface class header file.
const short SRV_SUBSTATE_READY
Definition: dataContext.hpp:31
const std::string SRV_STATE_UNAVAILABLE_STR
Definition: dataContext.hpp:39
Definition: dbInterface.hpp:53
const short SRV_SUBSTATE_NOTREADY
Definition: dataContext.hpp:30
const short SRV_STATE_NOT_OPERATIONAL
Definition: dataContext.hpp:26
const std::string SRV_STATE_OPERATIONAL_STR
Definition: dataContext.hpp:38
const std::string SRV_SUBSTATE_READY_STR
Definition: dataContext.hpp:42
IConfig & GetConfig()
Definition: dataContext.cpp:71
const std::unordered_map< short, std::string > SrvSubstateMap
Definition: dataContext.hpp:59
const short SRV_SUBSTATE_ERROR
Definition: dataContext.hpp:35
void SetState(const short state)
Definition: dataContext.cpp:92
void UpdateDb()
Definition: dataContext.cpp:51
const short SRV_SUBSTATE_IDLE
Definition: dataContext.hpp:32
const std::string SRV_STATE_NOT_OPERATIONAL_STR
Definition: dataContext.hpp:37
void SetSubstate(const short state)
Definition: dataContext.cpp:112
DataContext(IConfig &config, rad::DbAdapter &db_adapter, boost::asio::io_service &ios)
Definition: dataContext.cpp:23
const short SRV_STATE_OPERATIONAL
Definition: dataContext.hpp:27
const std::string SRV_SUBSTATE_IDLE_STR
Definition: dataContext.hpp:43
DataContext & operator=(const DataContext &)=delete
Disable assignment operator.
virtual ~DataContext()
Definition: dataContext.cpp:38
const std::unordered_map< short, std::string > SrvStateMap
Definition: dataContext.hpp:49
Definition: dataContext.hpp:81
short GetState()
Definition: dataContext.cpp:87
const short SRV_SUBSTATE_ENABLING
Definition: dataContext.hpp:34
void ReloadConfig()
Definition: dataContext.cpp:44
Definition: iConfig.hpp:22
const std::unordered_map< std::string, short > SrvStateStrMap
Definition: dataContext.hpp:54
short GetSubstate()
Definition: dataContext.cpp:107
const std::string SRV_SUBSTATE_NOTREADY_STR
Definition: dataContext.hpp:41
const std::unordered_map< std::string, short > SrvSubstateStrMap
Definition: dataContext.hpp:68
const std::string SRV_SUBSTATE_INITIALISING_STR
Definition: dataContext.hpp:44
DbInterface & GetDbInterface()
Definition: dataContext.cpp:81
const std::string SRV_SUBSTATE_ERROR_STR
Definition: dataContext.hpp:46
const short SRV_SUBSTATE_INITIALISING
Definition: dataContext.hpp:33