MI - Fimex
Public Member Functions | List of all members
MetNoFimex::DataTypeChanger Class Reference

#include <fimex/DataTypeChanger.h>

Public Member Functions

 DataTypeChanger (CDMDataType oldType)
 
 DataTypeChanger (CDMDataType oldType, double oldFill, double oldScale, double oldOffset, CDMDataType newType, double newFill, double newScale, double newOffset, double unitScale=1., double unitOffset=0.)
 
virtual ~DataTypeChanger ()
 
DataPtr convertData (DataPtr) const throw (CDMException)
 
CDMDataType getDataType () const
 

Detailed Description

brief wrapper class around data->convertType

Constructor & Destructor Documentation

MetNoFimex::DataTypeChanger::DataTypeChanger ( CDMDataType  oldType)
explicit

initialize data with the oldType convertData will do nothing in this case

MetNoFimex::DataTypeChanger::DataTypeChanger ( CDMDataType  oldType,
double  oldFill,
double  oldScale,
double  oldOffset,
CDMDataType  newType,
double  newFill,
double  newScale,
double  newOffset,
double  unitScale = 1.,
double  unitOffset = 0. 
)
explicit

initialize with the old and new settings

Parameters
oldTypedatatype of original data
oldFillfill value of the original data
oldScalescale_factor of the original data
oldOffsetscale_factor of the original data
newTypedatatype of converted data
newFillfill value of converted data
newScalescale_factor of the converted data
newOffsetadd_offset of the converted data
unitScalescale_factor for the unpacked data, i.e. for unit changes, default 1.
unitOffsetoffset for the unpacked data, i.e. for unit changes, default 0.
virtual MetNoFimex::DataTypeChanger::~DataTypeChanger ( )
virtual

Member Function Documentation

DataPtr MetNoFimex::DataTypeChanger::convertData ( DataPtr  ) const
throw (CDMException
)

convert the data to the new scale/fill/offset

CDMDataType MetNoFimex::DataTypeChanger::getDataType ( ) const

return the datatype of the converted data


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