vulp  2.2.2
vulp::observation::Observer Class Reference

Base class for observers. More...

#include <Observer.h>

Public Member Functions

virtual ~Observer ()
 Destructor is virtual to deallocate lists of observers properly. More...
 
virtual std::string prefix () const noexcept
 Prefix of outputs in the observation dictionary. More...
 
virtual void reset (const Dictionary &config)
 Reset observer. More...
 
virtual void read (const Dictionary &observation)
 Read inputs from other observations. More...
 
virtual void write (Dictionary &observation)
 Write outputs, called if reading was successful. More...
 

Detailed Description

Base class for observers.

Definition at line 15 of file Observer.h.

Constructor & Destructor Documentation

◆ ~Observer()

virtual vulp::observation::Observer::~Observer ( )
inlinevirtual

Destructor is virtual to deallocate lists of observers properly.

Definition at line 18 of file Observer.h.

Member Function Documentation

◆ prefix()

virtual std::string vulp::observation::Observer::prefix ( ) const
inlinevirtualnoexcept

Prefix of outputs in the observation dictionary.

Definition at line 21 of file Observer.h.

◆ read()

virtual void vulp::observation::Observer::read ( const Dictionary &  observation)
inlinevirtual

Read inputs from other observations.

Parameters
[in]observationDictionary to read other observations from.
Note
The base class reads nothing. We put an empty function here rather than making the class abstract to be able to instantiate vectors of it.

Definition at line 38 of file Observer.h.

◆ reset()

virtual void vulp::observation::Observer::reset ( const Dictionary &  config)
inlinevirtual

Reset observer.

Parameters
[in]configConfiguration dictionary.

Definition at line 29 of file Observer.h.

◆ write()

virtual void vulp::observation::Observer::write ( Dictionary &  observation)
inlinevirtual

Write outputs, called if reading was successful.

Parameters
[out]observationDictionary to write observations to.
Note
The base class writes nothing. We put an empty function here rather than making the class abstract to be able to instantiate vectors of it.

Definition at line 47 of file Observer.h.


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