9 #ifndef {{cookiecutter.module_name|upper}}_DB_INTERFACE_HPP_
10 #define {{cookiecutter.module_name|upper}}_DB_INTERFACE_HPP_
12 #include <rad/dbAdapter.hpp>
45 DbInterface(
const std::string& prefix,
rad::DbAdapter& runtime_db);
50 virtual ~DbInterface();
55 std::string GetControlState();
60 std::string GetControlSubstate();
65 std::string GetControlStatus();
71 std::string Get(
const std::string& key);
76 void SetControlState(
const std::string& value);
81 void SetControlSubstate(
const std::string& value);
86 void SetControlStatus(
const std::string& value);
95 void SetControl(
const std::string& state,
const std::string& substate,
96 const std::string& status);
106 void SetConfig(Config& cfg);
112 void Set(
const std::string& key,
const std::string& value);
114 DbInterface(
const DbInterface&) =
delete;
115 DbInterface& operator=(
const DbInterface&) =
delete;
118 std::string m_prefix;
124 #endif // {{cookiecutter.module_name|upper}}_DB_INTERFACE_HPP_
const std::string KEY_CONFIG_FILENAME
Definition: dbInterface.hpp:28
const std::string KEY_CONFIG_SM_SCXML
Definition: dbInterface.hpp:27
const std::string KEY_CONFIG_LOG_LEVEL
Definition: dbInterface.hpp:29
const std::string KEY_CONTROL_STATUS
Definition: dbInterface.hpp:20
Definition: dbAdapter.hpp:29
const std::string KEY_CONFIG_DB_ENDPOINT
Definition: dbInterface.hpp:25
const std::string KEY_CONTROL_SUBSTATE
Definition: dbInterface.hpp:19
const std::string KEY_CONFIG_LOG_PROPERTIES
Definition: dbInterface.hpp:30
const std::string KEY_CONTROL_STATE
Definition: dbInterface.hpp:18
const std::string KEY_CONTROL_SIMULATION
Definition: dbInterface.hpp:21
const std::string KEY_CONFIG_DB_TIMEOUT_SEC
Definition: dbInterface.hpp:26
const std::string KEY_CONFIG_REQ_ENDPOINT
Definition: dbInterface.hpp:23