9 #ifndef EXMALSERVER_DB_INTERFACE_HPP_
10 #define EXMALSERVER_DB_INTERFACE_HPP_
12 #include <rad/dbAdapter.hpp>
16 namespace exmalserver {
70 std::string
Get(
const std::string& key);
94 void SetControl(
const std::string& state,
const std::string& substate,
95 const std::string& status);
108 void Set(
const std::string& key,
const std::string& value);
114 std::string m_prefix;
120 #endif // EXMALSERVER_DB_INTERFACE_HPP_
std::string GetControlState()
Definition: dbInterface.cpp:30
const std::string KEY_CONTROL_STATE
Definition: dbInterface.hpp:18
void SetControl(const std::string &state, const std::string &substate, const std::string &status)
Definition: dbInterface.cpp:65
DbInterface(const std::string &prefix, rad::DbAdapter &runtime_db)
Definition: dbInterface.cpp:19
const std::string KEY_CONFIG_LOG_LEVEL
Definition: dbInterface.hpp:28
std::string GetControlStatus()
Definition: dbInterface.cpp:40
void SetControlStatus(const std::string &value)
Definition: dbInterface.cpp:60
const std::string KEY_CONFIG_REQ_ENDPOINT
Definition: dbInterface.hpp:23
virtual ~DbInterface()
Definition: dbInterface.cpp:28
const std::string KEY_CONTROL_SUBSTATE
Definition: dbInterface.hpp:19
Definition: dbAdapter.hpp:29
const std::string KEY_CONTROL_SIMULATION
Definition: dbInterface.hpp:21
const std::string KEY_CONFIG_FILENAME
Definition: dbInterface.hpp:27
void SetConfig(Config &cfg)
Definition: dbInterface.cpp:86
const std::string KEY_CONFIG_LOG_PROPERTIES
Definition: dbInterface.hpp:29
DbInterface & operator=(const DbInterface &)=delete
Disable copy constructor.
std::string GetControlSubstate()
Definition: dbInterface.cpp:35
const std::string KEY_CONFIG_DB_TIMEOUT_SEC
Definition: dbInterface.hpp:25
void Set(const std::string &key, const std::string &value)
Definition: dbInterface.cpp:109
void SetControlSubstate(const std::string &value)
Definition: dbInterface.cpp:55
std::string Get(const std::string &key)
Definition: dbInterface.cpp:45
void SetControlState(const std::string &value)
Definition: dbInterface.cpp:50
const std::string KEY_CONFIG_DB_ENDPOINT
Definition: dbInterface.hpp:24
const std::string KEY_CONTROL_STATUS
Definition: dbInterface.hpp:20
const std::string KEY_CONFIG_SM_SCXML
Definition: dbInterface.hpp:26