#include <dbInterface.hpp>
This class is the interface to the in-memory DB.
◆ DbInterface() [1/4]
exmalserver::DbInterface::DbInterface |
( |
const std::string & |
prefix, |
|
|
rad::DbAdapter & |
runtime_db |
|
) |
| |
Constructor.
- Parameters
-
[in] | prefix | String used as prefix when building the keys. |
[in] | runtime_db | Reference to the in-memory DB adapter. |
◆ ~DbInterface() [1/2]
exmalserver::DbInterface::~DbInterface |
( |
| ) |
|
|
virtual |
◆ DbInterface() [2/4]
exmalserver::DbInterface::DbInterface |
( |
const DbInterface & |
| ) |
|
|
delete |
◆ DbInterface() [3/4]
exmalserver::DbInterface::DbInterface |
( |
const std::string & |
prefix, |
|
|
rad::DbAdapter & |
runtime_db |
|
) |
| |
Constructor.
- Parameters
-
[in] | prefix | String used as prefix when building the keys. |
[in] | runtime_db | Reference to the in-memory DB adapter. |
◆ ~DbInterface() [2/2]
virtual exmalserver::DbInterface::~DbInterface |
( |
| ) |
|
|
virtual |
◆ DbInterface() [4/4]
exmalserver::DbInterface::DbInterface |
( |
const DbInterface & |
| ) |
|
|
delete |
◆ Get() [1/2]
std::string exmalserver::DbInterface::Get |
( |
const std::string & |
key | ) |
|
- Parameters
-
- Returns
- The value stored in the DB associated to the given key.
◆ Get() [2/2]
std::string exmalserver::DbInterface::Get |
( |
const std::string & |
key | ) |
|
- Parameters
-
- Returns
- The value stored in the DB associated to the given key.
◆ GetControlState() [1/2]
std::string exmalserver::DbInterface::GetControlState |
( |
| ) |
|
- Returns
- The current state of the application stored in the DB.
◆ GetControlState() [2/2]
std::string exmalserver::DbInterface::GetControlState |
( |
| ) |
|
- Returns
- The current state of the application stored in the DB.
◆ GetControlStatus() [1/2]
std::string exmalserver::DbInterface::GetControlStatus |
( |
| ) |
|
- Returns
- The current state and sub-state of the application stored in the DB.
◆ GetControlStatus() [2/2]
std::string exmalserver::DbInterface::GetControlStatus |
( |
| ) |
|
- Returns
- The current state and sub-state of the application stored in the DB.
◆ GetControlSubstate() [1/2]
std::string exmalserver::DbInterface::GetControlSubstate |
( |
| ) |
|
- Returns
- The current sub-state of the application stored in the DB.
◆ GetControlSubstate() [2/2]
std::string exmalserver::DbInterface::GetControlSubstate |
( |
| ) |
|
- Returns
- The current sub-state of the application stored in the DB.
◆ operator=() [1/2]
Disable copy constructor.
◆ operator=() [2/2]
Disable copy constructor.
◆ Set() [1/2]
void exmalserver::DbInterface::Set |
( |
const std::string & |
key, |
|
|
const std::string & |
value |
|
) |
| |
- Parameters
-
[in] | key | Key to be written in the DB. |
[in] | value | Value, associated to the given key, to be written in the DB. |
◆ Set() [2/2]
void exmalserver::DbInterface::Set |
( |
const std::string & |
key, |
|
|
const std::string & |
value |
|
) |
| |
- Parameters
-
[in] | key | Key to be written in the DB. |
[in] | value | Value, associated to the given key, to be written in the DB. |
◆ SetConfig() [1/2]
void exmalserver::DbInterface::SetConfig |
( |
Config & |
cfg | ) |
|
Set the application configuration information in the DB.
- Parameters
-
[in] | cfg | Reference to the configuration object. |
◆ SetConfig() [2/2]
void exmalserver::DbInterface::SetConfig |
( |
Config & |
cfg | ) |
|
Set the application configuration information in the DB.
- Parameters
-
[in] | cfg | Reference to the configuration object. |
◆ SetControl() [1/2]
void exmalserver::DbInterface::SetControl |
( |
const std::string & |
state, |
|
|
const std::string & |
substate, |
|
|
const std::string & |
status |
|
) |
| |
Set the application control information in the DB.
- Parameters
-
[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. |
◆ SetControl() [2/2]
void exmalserver::DbInterface::SetControl |
( |
const std::string & |
state, |
|
|
const std::string & |
substate, |
|
|
const std::string & |
status |
|
) |
| |
Set the application control information in the DB.
- Parameters
-
[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. |
◆ SetControlState() [1/2]
void exmalserver::DbInterface::SetControlState |
( |
const std::string & |
value | ) |
|
- Parameters
-
[in] | value | State to be stored in the DB. |
◆ SetControlState() [2/2]
void exmalserver::DbInterface::SetControlState |
( |
const std::string & |
value | ) |
|
- Parameters
-
[in] | value | State to be stored in the DB. |
◆ SetControlStatus() [1/2]
void exmalserver::DbInterface::SetControlStatus |
( |
const std::string & |
value | ) |
|
- Parameters
-
[in] | value | Status (state and substate) to be stored in the DB. |
◆ SetControlStatus() [2/2]
void exmalserver::DbInterface::SetControlStatus |
( |
const std::string & |
value | ) |
|
- Parameters
-
[in] | value | Status (state and substate) to be stored in the DB. |
◆ SetControlSubstate() [1/2]
void exmalserver::DbInterface::SetControlSubstate |
( |
const std::string & |
value | ) |
|
- Parameters
-
[in] | value | Sub-state to be stored in the DB. |
◆ SetControlSubstate() [2/2]
void exmalserver::DbInterface::SetControlSubstate |
( |
const std::string & |
value | ) |
|
- Parameters
-
[in] | value | Sub-state to be stored in the DB. |
The documentation for this class was generated from the following files: