#include <dbInterface.hpp>
This class is the interface to the in-memory DB.
◆ DbInterface() [1/2]
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()
exmalserver::DbInterface::~DbInterface |
( |
| ) |
|
|
virtual |
◆ DbInterface() [2/2]
exmalserver::DbInterface::DbInterface |
( |
const DbInterface & | | ) |
|
|
delete |
◆ Get()
std::string exmalserver::DbInterface::Get |
( |
const std::string & | key | ) |
|
- Parameters
-
- Returns
- The value stored in the DB associated to the given key.
◆ GetControlState()
std::string exmalserver::DbInterface::GetControlState |
( |
| ) |
|
- Returns
- The current state of the application stored in the DB.
◆ GetControlStatus()
std::string exmalserver::DbInterface::GetControlStatus |
( |
| ) |
|
- Returns
- The current state and sub-state of the application stored in the DB.
◆ GetControlSubstate()
std::string exmalserver::DbInterface::GetControlSubstate |
( |
| ) |
|
- Returns
- The current sub-state of the application stored in the DB.
◆ operator=()
Disable copy constructor.
◆ Set()
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()
void exmalserver::DbInterface::SetConfig |
( |
const Config & | cfg | ) |
|
Set the application configuration information in the DB.
- Parameters
-
[in] | cfg | Reference to the configuration object. |
◆ SetControl()
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()
void exmalserver::DbInterface::SetControlState |
( |
const std::string & | value | ) |
|
- Parameters
-
[in] | value | State to be stored in the DB. |
◆ SetControlStatus()
void exmalserver::DbInterface::SetControlStatus |
( |
const std::string & | value | ) |
|
- Parameters
-
[in] | value | Status (state and substate) to be stored in the DB. |
◆ SetControlSubstate()
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: