Colibri Core
Public Member Functions | Static Public Attributes | List of all members
BaseValueHandler< ValueType > Class Template Reference

This templated class can be used for all numeric base types (such as int, uint16_t, float, etc). More...

#include <datatypes.h>

Inheritance diagram for BaseValueHandler< ValueType >:
AbstractValueHandler< ValueType >

Public Member Functions

virtual std::string id ()
 
void read (std::istream *in, ValueType &v)
 
void write (std::ostream *out, ValueType &value)
 
virtual std::string tostring (ValueType &value)
 
unsigned int count (ValueType &value) const
 
void add (ValueType *value, const IndexReference &ref) const
 
void convertto (ValueType *source, ValueType *&target) const
 
void convertto (ValueType *source, IndexedData *&target) const
 

Static Public Attributes

static const bool indexed = false
 

Detailed Description

template<class ValueType>
class BaseValueHandler< ValueType >

This templated class can be used for all numeric base types (such as int, uint16_t, float, etc).

Template Parameters
ValueTypethe actual numeric base type used

Member Function Documentation

template<class ValueType >
void BaseValueHandler< ValueType >::add ( ValueType *  value,
const IndexReference ref 
) const
inlinevirtual
template<class ValueType >
void BaseValueHandler< ValueType >::convertto ( ValueType *  source,
ValueType *&  target 
) const
inlinevirtual

Reimplemented from AbstractValueHandler< ValueType >.

template<class ValueType >
void BaseValueHandler< ValueType >::convertto ( ValueType *  source,
IndexedData *&  target 
) const
inline
template<class ValueType >
unsigned int BaseValueHandler< ValueType >::count ( ValueType &  value) const
inlinevirtual
template<class ValueType >
virtual std::string BaseValueHandler< ValueType >::id ( )
inlinevirtual

Reimplemented from AbstractValueHandler< ValueType >.

template<class ValueType >
void BaseValueHandler< ValueType >::read ( std::istream *  in,
ValueType &  v 
)
inlinevirtual
template<class ValueType >
virtual std::string BaseValueHandler< ValueType >::tostring ( ValueType &  value)
inlinevirtual
template<class ValueType >
void BaseValueHandler< ValueType >::write ( std::ostream *  out,
ValueType &  value 
)
inlinevirtual

Member Data Documentation

template<class ValueType >
const bool BaseValueHandler< ValueType >::indexed = false
static

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