Converter Class Reference
[Classes of the ODIN data processing framework (odindata library)]

#include <converter.h>

List of all members.

Static Public Member Functions

static int get_elements (const STD_complex &)
template<typename T>
static int get_elements (const T &)
template<typename Src, typename Dst>
static void convert_array (const Src *src, Dst *dst, int srcsize, int dstsize, autoscaleOption scaleopt=autoscale)


Detailed Description

Helper class for conversion between numbers

Definition at line 53 of file converter.h.


Member Function Documentation

template<typename T>
static int Converter::get_elements ( const T &   )  [inline, static]

Returns number of scalar numbers in this number type, e.g. complex has 2

Definition at line 71 of file converter.h.

template<typename Src, typename Dst>
static void Converter::convert_array ( const Src *  src,
Dst *  dst,
int  srcsize,
int  dstsize,
autoscaleOption  scaleopt = autoscale 
) [inline, static]

Converts array 'src' with 'srcsize' elements to array 'dst' with 'dstsize' elements Will scale "around 0" if 0 is part of the source value range. Elsewise values will be offset towards 0. If destination is unsigned values will be offset to be positive domain if necessary. If autoscaleOption is "noscale" or if destination is floating point no scaling is done at all.

Definition at line 86 of file converter.h.


The documentation for this class was generated from the following file:
Generated on Sat Jun 14 12:31:24 2008 by  doxygen 1.5.1