Colibri Core
Public Member Functions | List of all members
AbstractValueHandler< ValueType > Class Template Referenceabstract

Abstract value handler class, all value handlers are derived from this. Value handlers are interfaces to the values in Pattern Maps. They are used to abstract from the actual value data type and provide some common methods required for all values, as well at methods for serialisation from/to binary file. All are derived from the abstract class AbstractValueHandler. More...

#include <datatypes.h>

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

Public Member Functions

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

Detailed Description

template<class ValueType>
class AbstractValueHandler< ValueType >

Abstract value handler class, all value handlers are derived from this. Value handlers are interfaces to the values in Pattern Maps. They are used to abstract from the actual value data type and provide some common methods required for all values, as well at methods for serialisation from/to binary file. All are derived from the abstract class AbstractValueHandler.

Member Function Documentation

template<class ValueType>
virtual void AbstractValueHandler< ValueType >::add ( ValueType *  value,
const IndexReference ref 
) const
pure virtual
template<class ValueType>
virtual void AbstractValueHandler< ValueType >::convertto ( ValueType *  source,
ValueType *&  target 
) const
inlinevirtual
template<class ValueType>
virtual unsigned int AbstractValueHandler< ValueType >::count ( ValueType &  value) const
pure virtual
template<class ValueType>
virtual std::string AbstractValueHandler< ValueType >::id ( )
inlinevirtual
template<class ValueType>
virtual void AbstractValueHandler< ValueType >::read ( std::istream *  in,
ValueType &  value 
)
pure virtual
template<class ValueType>
virtual std::string AbstractValueHandler< ValueType >::tostring ( ValueType &  value)
pure virtual
template<class ValueType>
virtual void AbstractValueHandler< ValueType >::write ( std::ostream *  out,
ValueType &  value 
)
pure virtual

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