Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Attributes | List of all members
ValueHandler Class Reference

#include <ValueHandler.h>

Public Types

typedef unsigned int flag_t
 

Public Member Functions

 ValueHandler ()
 Constructor.
 
template<typename T >
flag_t handle (T &value) const
 Checks and appropriately, change the value.
 
template<typename T >
bool validate (T &value) const
 
virtual flag_t handleUChar (unsigned char &value) const
 
virtual flag_t handleInt (int &value) const
 
virtual flag_t handleDouble (double &value) const
 
template<>
ValueHandler::flag_t handle (unsigned char &value) const
 
template<>
ValueHandler::flag_t handle (int &value) const
 
template<>
ValueHandler::flag_t handle (double &d) const
 

Static Public Attributes

static const flag_t ACCEPT = 0
 
static const flag_t REJECT = 1
 
static const flag_t CHANGED = 2
 

Detailed Description

Assuming that data has some special codes, encoder should detect them and suggest different handling for processing of values.

Main method handle(value) should return 0, if the processing can continue the default way.


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