ifw-ccf  3.0.0-pre2
Public Member Functions | List of all members
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. More...
 
void ReloadConfig ()
 Reload the configuration from file and reconnect to the in-memory DB. More...
 
void UpdateDb ()
 Connect to the DB and update the application configuration. More...
 
 DataContext (const DataContext &)=delete
 
DataContextoperator= (const DataContext &)=delete
 Disable copy constructor. More...
 

Detailed Description

Provides access to the application run-time data.

Constructor & Destructor Documentation

◆ DataContext() [1/2]

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()

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

Destructor.

◆ DataContext() [2/2]

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

Member Function Documentation

◆ operator=()

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

Disable copy constructor.

◆ ReloadConfig()

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

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

◆ UpdateDb()

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

Connect to the DB and update the application configuration.


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