rad
2.0.0
|
#include <dbInterface.hpp>
Public Member Functions | |
DbInterface (const std::string &prefix, rad::DbAdapter &runtime_db) | |
virtual | ~DbInterface () |
std::string | GetControlState () |
std::string | GetControlSubstate () |
std::string | GetControlStatus () |
std::string | Get (const std::string &key) |
void | SetControlState (const std::string &value) |
void | SetControlSubstate (const std::string &value) |
void | SetControlStatus (const std::string &value) |
void | SetControl (const std::string &state, const std::string &substate, const std::string &status) |
void | SetConfig (Config &cfg) |
void | Set (const std::string &key, const std::string &value) |
DbInterface (const DbInterface &)=delete | |
DbInterface & | operator= (const DbInterface &)=delete |
Disable copy constructor. More... | |
DbInterface (const std::string &prefix, rad::DbAdapter &runtime_db) | |
virtual | ~DbInterface () |
std::string | GetControlState () |
std::string | GetControlSubstate () |
std::string | GetControlStatus () |
std::string | Get (const std::string &key) |
void | SetControlState (const std::string &value) |
void | SetControlSubstate (const std::string &value) |
void | SetControlStatus (const std::string &value) |
void | SetControl (const std::string &state, const std::string &substate, const std::string &status) |
void | SetConfig (Config &cfg) |
void | Set (const std::string &key, const std::string &value) |
DbInterface (const DbInterface &)=delete | |
DbInterface & | operator= (const DbInterface &)=delete |
Disable copy constructor. More... | |
Interface class to the data stored in the in-memory DB.
hello::DbInterface::DbInterface | ( | const std::string & | prefix, |
rad::DbAdapter & | runtime_db | ||
) |
Constructor.
[in] | prefix | String used as prefix when building the keys. |
[in] | runtime_db | Reference to the in-memory DB adapter. |
|
virtual |
Destructor
|
delete |
hello::DbInterface::DbInterface | ( | const std::string & | prefix, |
rad::DbAdapter & | runtime_db | ||
) |
|
virtual |
|
delete |
std::string hello::DbInterface::Get | ( | const std::string & | key | ) |
[in] | key | Key in the DB. |
std::string hello::DbInterface::Get | ( | const std::string & | key | ) |
std::string hello::DbInterface::GetControlState | ( | ) |
std::string hello::DbInterface::GetControlState | ( | ) |
std::string hello::DbInterface::GetControlStatus | ( | ) |
std::string hello::DbInterface::GetControlStatus | ( | ) |
std::string hello::DbInterface::GetControlSubstate | ( | ) |
std::string hello::DbInterface::GetControlSubstate | ( | ) |
|
delete |
Disable copy constructor.
|
delete |
Disable copy constructor.
void hello::DbInterface::Set | ( | const std::string & | key, |
const std::string & | value | ||
) |
void hello::DbInterface::Set | ( | const std::string & | key, |
const std::string & | value | ||
) |
[in] | key | Key to be written in the DB. |
[in] | value | Value, associated to the given key, to be written in the DB. |
void hello::DbInterface::SetConfig | ( | Config & | cfg | ) |
void hello::DbInterface::SetConfig | ( | Config & | cfg | ) |
Set the application configuration information in the DB.
[in] | req_endpoint | Request msg endpoint. |
[in] | dbIpAddr | DB IP address. |
[in] | dbPort | DB port. |
[in] | db_timeout | DB timeout. |
void hello::DbInterface::SetControl | ( | const std::string & | state, |
const std::string & | substate, | ||
const std::string & | status | ||
) |
Set the application control information in the DB.
[in] | state | State to be stored in the DB. |
[in] | substate | Substate to be stored in the DB. |
[in] | status | Status to be stored in the DB. |
void hello::DbInterface::SetControl | ( | const std::string & | state, |
const std::string & | substate, | ||
const std::string & | status | ||
) |
void hello::DbInterface::SetControlState | ( | const std::string & | value | ) |
void hello::DbInterface::SetControlState | ( | const std::string & | value | ) |
[in] | value | State to be stored in the DB. |
void hello::DbInterface::SetControlStatus | ( | const std::string & | value | ) |
void hello::DbInterface::SetControlStatus | ( | const std::string & | value | ) |
[in] | value | Status (state and substate) to be stored in the DB. |
void hello::DbInterface::SetControlSubstate | ( | const std::string & | value | ) |
void hello::DbInterface::SetControlSubstate | ( | const std::string & | value | ) |
[in] | value | Sub-state to be stored in the DB. |