rad  5.1.0
Public Member Functions | List of all members
rad::utest::DataContext Class Reference

#include <dataContext.hpp>

Inheritance diagram for rad::utest::DataContext:
rad::DataContext

Public Member Functions

 DataContext (rad::Config &config)
 
virtual ~DataContext ()
 
virtual void ReloadConfig () override
 
virtual rad::ConfigGetConfig () override
 
virtual void UpdateDb () override
 
virtual rad::OldbInterfaceGetOldbInterface () override
 

Detailed Description

This class is a trivial implementation of the lsv::app::DataContext interface that can be used for unit tests.

It implements the mandatory pure virtual methods.

Constructor & Destructor Documentation

◆ DataContext()

rad::utest::DataContext::DataContext ( rad::Config config)
explicit

◆ ~DataContext()

rad::utest::DataContext::~DataContext ( )
virtual

Reimplemented from rad::DataContext.

Member Function Documentation

◆ GetConfig()

rad::Config & rad::utest::DataContext::GetConfig ( )
overridevirtual
Returns
reference to the Config object.

Implements rad::DataContext.

◆ GetOldbInterface()

rad::OldbInterface & rad::utest::DataContext::GetOldbInterface ( )
overridevirtual
Returns
A reference to the OLDB interface object.

Implements rad::DataContext.

◆ ReloadConfig()

void rad::utest::DataContext::ReloadConfig ( )
overridevirtual

Reload the configuration from file.

Implements rad::DataContext.

◆ UpdateDb()

void rad::utest::DataContext::UpdateDb ( )
overridevirtual

Try to connect to the DB and write the application configuration to the OLDB.

Implements rad::DataContext.


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