#include <dataContext.hpp>
Public Member Functions | |
| DataContext () | |
| virtual | ~DataContext () |
| void | Initialize () override |
| OldbInterface & | GetOldbInterface () |
| Config & | GetConfig () |
| void | ReloadConfig () |
| void | UpdateDb () |
| rad::OldbAsyncWriter & | GetOldbAsyncWriter () |
| void | PublishStatus (const std::string &status) |
| DataContext (const DataContext &)=delete | |
| DataContext & | operator= (const DataContext &)=delete |
| Disable copy constructor. | |
This class provide access to the application run-time data including the in-memory DB.
| ifw::slm::DataContext::DataContext | ( | ) |
This constructor uses the application configuration to initialize the adapter object to the in-memory DB. The DB adapter is then used to initialize the DB interface object that can be used to access the DB key-value pairs.
|
virtual |
Destructor
|
delete |
|
inline |
| OldbInterface & ifw::slm::DataContext::GetOldbInterface | ( | ) |
|
override |
Initialize the class and attributes after they have been created and the configuration has been loaded.
|
delete |
Disable copy constructor.
| void ifw::slm::DataContext::PublishStatus | ( | const std::string & | status | ) |
Publish status via MAL pub/sub.
| status | Status string in format "State;Substate" (e.g., "Operational;Idle") |
| void ifw::slm::DataContext::ReloadConfig | ( | ) |
Reload the configuration from file and reconnect to the in-memory DB.
| void ifw::slm::DataContext::UpdateDb | ( | ) |
Try to connect to the DB and update the application configuration.