ivutils
Loading...
Searching...
No Matches
process_detail< inp_t, out_t > Class Template Referenceabstract

Template base class for collecting process variables identified by their symbolic names into output vector. More...

#include <logger.h>

Public Member Functions

size_t AddField (out_t *ptr, const std::string &name, int on=1)
 adds output descriptor, returns the data reference to be used in constructors of derivates
 
virtual int SetOutFlag (const std::string &name, int flag=1)
 swithces the output of specified field on or off
 
virtual size_t GetFields (std::vector< std::string > &descr) const
 collects the symbolic descriptors of output fields which are switched on
 
virtual int process (std::vector< out_t > &vout, const inp_t &v, int refnum=0)=0
 transforms input value into a set of output values some of which (thouse switched on) are collected in vout
 

Protected Member Functions

virtual size_t TransferValues (std::vector< out_t > &descr) const
 transfers the values which are switched on to the vector to be used from process() of derivates
 

Detailed Description

template<class inp_t, class out_t>
class process_detail< inp_t, out_t >

Template base class for collecting process variables identified by their symbolic names into output vector.

Process variables are of class out_t; the argument of process function (input variable) is of inp_t. This class is used as base logger class for file loggers (ex. mdlog.h)

Member Function Documentation

◆ process()

template<class inp_t , class out_t >
virtual int process_detail< inp_t, out_t >::process ( std::vector< out_t > &  vout,
const inp_t &  v,
int  refnum = 0 
)
pure virtual

transforms input value into a set of output values some of which (thouse switched on) are collected in vout

Returns
number of fields in vout or <0 if the entry is invalid

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