ifw-ccf 5.0.2
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ifw::ccf::control::DataContext Class Reference

Provides access to the application run-time data. More...

#include <dataContext.hpp>

Public Member Functions

 DataContext (Config &config)
 
virtual ~DataContext ()
 Destructor.
 
void ReloadConfig ()
 Reload the configuration from file and reconnect to the in-memory DB.
 
void UpdateDb ()
 Connect to the DB and update the application configuration.
 
 DataContext (const DataContext &)=delete
 
DataContextoperator= (const DataContext &)=delete
 Disable copy constructor.
 

Detailed Description

Provides access to the application run-time data.

Constructor & Destructor Documentation

◆ DataContext() [1/2]

ifw::ccf::control::DataContext::DataContext ( Config & config)

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.

Parameters
[in]configReference to the application configuration.

◆ ~DataContext()

ifw::ccf::control::DataContext::~DataContext ( )
virtual

Destructor.

◆ DataContext() [2/2]

ifw::ccf::control::DataContext::DataContext ( const DataContext & )
delete

Member Function Documentation

◆ operator=()

DataContext & ifw::ccf::control::DataContext::operator= ( const DataContext & )
delete

Disable copy constructor.

◆ ReloadConfig()

void ifw::ccf::control::DataContext::ReloadConfig ( )

Reload the configuration from file and reconnect to the in-memory DB.

◆ UpdateDb()

void ifw::ccf::control::DataContext::UpdateDb ( )

Connect to the DB and update the application configuration.


The documentation for this class was generated from the following files: