9 #ifndef HELLOMAL_DB_INTERFACE_HPP_
10 #define HELLOMAL_DB_INTERFACE_HPP_
12 #include <rad/dbAdapter.hpp>
71 std::string
Get(
const std::string& key);
95 void SetControl(
const std::string& state,
const std::string& substate,
96 const std::string& status);
112 void Set(
const std::string& key,
const std::string& value);
118 std::string m_prefix;
124 #endif // HELLOMAL_DB_INTERFACE_HPP_
void SetControlState(const std::string &value)
Definition: dbInterface.cpp:54
const std::string KEY_CONFIG_REQ_ENDPOINT
Definition: dbInterface.hpp:23
const std::string KEY_CONTROL_STATUS
Definition: dbInterface.hpp:20
const std::string KEY_CONFIG_LOG_LEVEL
Definition: dbInterface.hpp:28
std::string Get(const std::string &key)
Definition: dbInterface.cpp:49
void SetConfig(Config &cfg)
Definition: dbInterface.cpp:85
void SetControlSubstate(const std::string &value)
Definition: dbInterface.cpp:59
const std::string KEY_CONTROL_SUBSTATE
Definition: dbInterface.hpp:19
const std::string KEY_CONFIG_FILENAME
Definition: dbInterface.hpp:27
DbInterface & operator=(const DbInterface &)=delete
Disable copy constructor.
std::string GetControlState()
Definition: dbInterface.cpp:34
Definition: dbAdapter.hpp:29
Definition: config.hpp:40
std::string GetControlStatus()
Definition: dbInterface.cpp:44
const std::string KEY_CONFIG_LOG_PROPERTIES
Definition: dbInterface.hpp:29
Definition: dbInterface.hpp:37
void SetControlStatus(const std::string &value)
Definition: dbInterface.cpp:64
DbInterface(const std::string &prefix, rad::DbAdapter &runtime_db)
Definition: dbInterface.cpp:20
const std::string KEY_CONTROL_SIMULATION
Definition: dbInterface.hpp:21
std::string GetControlSubstate()
Definition: dbInterface.cpp:39
const std::string KEY_CONFIG_DB_TIMEOUT_SEC
Definition: dbInterface.hpp:25
void SetControl(const std::string &state, const std::string &substate, const std::string &status)
Definition: dbInterface.cpp:69
const std::string KEY_CONFIG_SM_SCXML
Definition: dbInterface.hpp:26
const std::string KEY_CONTROL_STATE
Definition: dbInterface.hpp:18
void Set(const std::string &key, const std::string &value)
Definition: dbInterface.cpp:108
const std::string KEY_CONFIG_DB_ENDPOINT
Definition: dbInterface.hpp:24
virtual ~DbInterface()
Definition: dbInterface.cpp:30