ivutils
|
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 | |
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)
|
pure virtual |
transforms input value into a set of output values some of which (thouse switched on) are collected in vout