rad 6.2.0
Loading...
Searching...
No Matches
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 ()
 
void ReloadConfig () override
 
rad::ConfigGetConfig () override
 
void UpdateDb () override
 
rad::OldbInterfaceGetOldbInterface () override
 
- Public Member Functions inherited from rad::DataContext
 DataContext ()
 
virtual void Initialize ()
 
virtual void SetTrsHealth (TrsHealthState health)
 
virtual TrsHealthState GetTrsHealth ()
 

Additional Inherited Members

- Public Types inherited from rad::DataContext
enum class  TrsHealthState { UNKNOWN , DISABLED , GOOD , BAD }
 

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. This method can also be used to create and initialize the monitoring branch of the OLDB.

Implements rad::DataContext.


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