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 | SetDataDevMeas (const std::string &time_stamp, const double x, const double y) |
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 | SetDataDevMeas (const std::string &time_stamp, const double x, const double y) |
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.
server::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 |
server::DbInterface::DbInterface | ( | const std::string & | prefix, |
rad::DbAdapter & | runtime_db | ||
) |
|
virtual |
|
delete |
std::string server::DbInterface::Get | ( | const std::string & | key | ) |
[in] | key | Key in the DB. |
std::string server::DbInterface::Get | ( | const std::string & | key | ) |
std::string server::DbInterface::GetControlState | ( | ) |
std::string server::DbInterface::GetControlState | ( | ) |
std::string server::DbInterface::GetControlStatus | ( | ) |
std::string server::DbInterface::GetControlStatus | ( | ) |
std::string server::DbInterface::GetControlSubstate | ( | ) |
std::string server::DbInterface::GetControlSubstate | ( | ) |
|
delete |
Disable copy constructor.
|
delete |
Disable copy constructor.
void server::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 server::DbInterface::Set | ( | const std::string & | key, |
const std::string & | value | ||
) |
void server::DbInterface::SetConfig | ( | Config & | cfg | ) |
Set the application configuration information in the DB.
[in] | cfg | Reference to the configuration object. |
void server::DbInterface::SetConfig | ( | Config & | cfg | ) |
void server::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 server::DbInterface::SetControl | ( | const std::string & | state, |
const std::string & | substate, | ||
const std::string & | status | ||
) |
void server::DbInterface::SetControlState | ( | const std::string & | value | ) |
[in] | value | State to be stored in the DB. |
void server::DbInterface::SetControlState | ( | const std::string & | value | ) |
void server::DbInterface::SetControlStatus | ( | const std::string & | value | ) |
void server::DbInterface::SetControlStatus | ( | const std::string & | value | ) |
[in] | value | Status (state and substate) to be stored in the DB. |
void server::DbInterface::SetControlSubstate | ( | const std::string & | value | ) |
[in] | value | Sub-state to be stored in the DB. |
void server::DbInterface::SetControlSubstate | ( | const std::string & | value | ) |
void server::DbInterface::SetDataDevMeas | ( | const std::string & | time_stamp, |
const double | x, | ||
const double | y | ||
) |
[in] | time_stamp | When the measurement was received. |
[in] | x | Position X of the device. |
[in] | y | Position Y of the device. |
void server::DbInterface::SetDataDevMeas | ( | const std::string & | time_stamp, |
const double | x, | ||
const double | y | ||
) |