HLCC Documentation 2.2.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
hlcc::telmon::DataContext Class Reference

#include <dataContext.hpp>

Inheritance diagram for hlcc::telmon::DataContext:

Public Member Functions

 DataContext ()
 
virtual ~DataContext ()
 
void ReloadConfig () override
 
ConfigGetConfig () override
 
void UpdateDb () override
 
OldbInterfaceGetOldbInterface () override
 
void SetPyModulesReload (bool reload)
 
bool GetPyModulesReload ()
 
void SetNbrModulesLoaded (int nbr_modules)
 
int GetNbrModulesLoaded ()
 
 DataContext (const DataContext &)=delete
 
DataContextoperator= (const DataContext &)=delete
 Disable copy constructor.
 

Detailed Description

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

Constructor & Destructor Documentation

◆ DataContext() [1/2]

hlcc::telmon::DataContext::DataContext ( )

Default Constructor

◆ ~DataContext()

hlcc::telmon::DataContext::~DataContext ( )
virtual

Destructor

◆ DataContext() [2/2]

hlcc::telmon::DataContext::DataContext ( const DataContext & )
delete

Member Function Documentation

◆ GetConfig()

Config & hlcc::telmon::DataContext::GetConfig ( )
override
Returns
reference to the Config object.

◆ GetNbrModulesLoaded()

int hlcc::telmon::DataContext::GetNbrModulesLoaded ( )

Getter function for the m_nbr_modules_loaded menber var

Returns
number of modules currently loaded.

◆ GetOldbInterface()

OldbInterface & hlcc::telmon::DataContext::GetOldbInterface ( )
override
Returns
A reference to the DB interface object.

◆ GetPyModulesReload()

bool hlcc::telmon::DataContext::GetPyModulesReload ( )

Getter function for the m_oldb_interface menber var

Returns
true if python modules should be reloaded

◆ operator=()

DataContext & hlcc::telmon::DataContext::operator= ( const DataContext & )
delete

Disable copy constructor.

◆ ReloadConfig()

void hlcc::telmon::DataContext::ReloadConfig ( )
override

Reload the configuration from file.

◆ SetNbrModulesLoaded()

void hlcc::telmon::DataContext::SetNbrModulesLoaded ( int nbr_modules)

Setter function for the m_nbr_modules_loaded menber var

Parameters
[in]nbr_modulesnumber of modules currently loaded.

◆ SetPyModulesReload()

void hlcc::telmon::DataContext::SetPyModulesReload ( bool reload)

Setter function for the m_oldb_interface menber var

Parameters
[in]reloadtrue if the modules should be reloaded.

◆ UpdateDb()

void hlcc::telmon::DataContext::UpdateDb ( )
override

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


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