ifw  0.0.1-dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
ctd::qatk::qapp2::DataContext Class Reference

#include <dataContext.hpp>

Public Member Functions

 DataContext (Config &config, rad::DbAdapter &db_adapter)
 
virtual ~DataContext ()
 
void ReloadConfig ()
 Reload the configuration from file and reconnect to the in-memory DB. More...
 
void UpdateDb ()
 Try to connect to the DB and update the application configuration. More...
 
DbInterfaceGetDbInterface ()
 
 DataContext (const DataContext &)=delete
 
DataContextoperator= (const DataContext &)=delete
 
 DataContext (Config &config, rad::DbAdapter &db_adapter)
 
virtual ~DataContext ()
 
void ReloadConfig ()
 Reload the configuration from file and reconnect to the in-memory DB. More...
 
void UpdateDb ()
 Try to connect to the DB and update the application configuration. More...
 
DbInterfaceGetDbInterface ()
 
 DataContext (const DataContext &)=delete
 
DataContextoperator= (const DataContext &)=delete
 

Detailed Description

This class provide access to the application run-time data including the in-memory DB.

Constructor & Destructor Documentation

ctd::qatk::qapp2::DataContext::DataContext ( Config config,
rad::DbAdapter db_adapter 
)

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.
ctd::qatk::qapp2::DataContext::~DataContext ( )
virtual
ctd::qatk::qapp2::DataContext::DataContext ( const DataContext )
delete
ctd::qatk::qapp2::DataContext::DataContext ( Config config,
rad::DbAdapter db_adapter 
)

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.
virtual ctd::qatk::qapp2::DataContext::~DataContext ( )
virtual
ctd::qatk::qapp2::DataContext::DataContext ( const DataContext )
delete

Member Function Documentation

DbInterface & ctd::qatk::qapp2::DataContext::GetDbInterface ( )
Returns
A reference to the DB interface object.
DbInterface& ctd::qatk::qapp2::DataContext::GetDbInterface ( )
Returns
A reference to the DB interface object.
DataContext& ctd::qatk::qapp2::DataContext::operator= ( const DataContext )
delete
DataContext& ctd::qatk::qapp2::DataContext::operator= ( const DataContext )
delete
void ctd::qatk::qapp2::DataContext::ReloadConfig ( )

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

void ctd::qatk::qapp2::DataContext::ReloadConfig ( )

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

void ctd::qatk::qapp2::DataContext::UpdateDb ( )

Try to connect to the DB and update the application configuration.

void ctd::qatk::qapp2::DataContext::UpdateDb ( )

Try to connect to the DB and update the application configuration.


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