rad 6.2.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
rad::utest::OldbInterface Class Reference

#include <oldbInterface.hpp>

Inheritance diagram for rad::utest::OldbInterface:
rad::OldbInterface

Public Member Functions

 OldbInterface (const std::string &prefix="")
 
virtual ~OldbInterface ()
 
void SetConfig (const rad::Config &cfg) override
 
void SetControlState (const std::string &value) override
 
void SetTrsHealth (const std::string &health, const std::string &desc) override
 
- Public Member Functions inherited from rad::OldbInterface
 OldbInterface (const std::string &prefix="")
 
const std::string & GetPrefix ()
 
rad::cii::OldbAdapterGetOldbAdapter ()
 
void SetPrefix (const std::string &prefix)
 
template<typename T >
void SetValue (const std::string &key, const T &value)
 
template<typename T >
void GetValue (const std::string &key, T &value)
 
 OldbInterface (const OldbInterface &)=delete
 
OldbInterfaceoperator= (const OldbInterface &)=delete
 Disable copy constructor.
 

Detailed Description

This class is a concrete implementation of the rad::OldbInterface that is used for unit testing the rad::app library. It avoids writing to the OLDB.

Constructor & Destructor Documentation

◆ OldbInterface()

rad::utest::OldbInterface::OldbInterface ( const std::string & prefix = "")
explicit

Constructor.

◆ ~OldbInterface()

rad::utest::OldbInterface::~OldbInterface ( )
virtual

Destructor.

Reimplemented from rad::OldbInterface.

Member Function Documentation

◆ SetConfig()

void rad::utest::OldbInterface::SetConfig ( const rad::Config & cfg)
overridevirtual

Writes the configuration to the OLDB.

Reimplemented from rad::OldbInterface.

◆ SetControlState()

void rad::utest::OldbInterface::SetControlState ( const std::string & value)
overridevirtual

This method writes the application State Machine state to the OLDB.

Parameters
valueApplication SM state.

Reimplemented from rad::OldbInterface.

◆ SetTrsHealth()

void rad::utest::OldbInterface::SetTrsHealth ( const std::string & health,
const std::string & desc )
overridevirtual

This method writes the TRS health status to the OLDB.

Parameters
valueTRS health status and description.

Reimplemented from rad::OldbInterface.


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