#include <Data.h>
Inheritance diagram for MetNoFimex::Data:
Public Member Functions | |
virtual | ~Data ()=0 |
virtual size_t | size () const =0 |
size of the data | |
virtual int | bytes_for_one () const =0 |
sizeof the data-impl datatype | |
virtual void * | getDataPtr ()=0 |
virtual void | toStream (std::ostream &, std::string separator="") const =0 |
printing of the current data to ostream, with optional separator | |
virtual const boost::shared_array< char > | asConstChar () const =0 |
retrieve data as char | |
virtual boost::shared_array< char > | asChar ()=0 |
retrieve data as char | |
virtual const boost::shared_array< short > | asConstShort () const =0 |
retrieve data as short | |
virtual boost::shared_array< short > | asShort ()=0 |
retrieve data as short | |
virtual const boost::shared_array< int > | asConstInt () const =0 |
retrieve data as int | |
virtual boost::shared_array< int > | asInt ()=0 |
retrieve data as int | |
virtual const boost::shared_array< float > | asConstFloat () const =0 |
retrieve data as float | |
virtual boost::shared_array< float > | asFloat ()=0 |
retrieve data as float (eventually copy) | |
virtual const boost::shared_array< double > | asConstDouble () const =0 |
retrieve data as double | |
virtual boost::shared_array< double > | asDouble ()=0 |
retrieve data as double | |
virtual std::string | asString (std::string separator="") const =0 |
retrieve the whole array as a string (with possible separator) | |
virtual void | setValue (long pos, double val)=0 |
set a value at the desired position | |
virtual void | setValues (size_t startPos, const Data &data, size_t first=0, size_t last=-1)=0 throw (CDMException) |
virtual boost::shared_ptr< Data > | slice (std::vector< size_t > orgDimSize, std::vector< size_t > startDims, std::vector< size_t > outputDimSize)=0 throw (CDMException) |
get a slice of the data | |
virtual boost::shared_ptr< Data > | convertDataType (double oldFill, double oldScale, double oldOffset, CDMDataType newType, double newFill, double newScale, double newOffset)=0 throw (CDMException) |
convert the datatype from one type,fill,scale,offset to another |
|
|
|
retrieve data as char
Implemented in MetNoFimex::DataImpl< C >. |
|
retrieve data as char
Implemented in MetNoFimex::DataImpl< C >. |
|
retrieve data as double
Implemented in MetNoFimex::DataImpl< C >. |
|
retrieve data as float
Implemented in MetNoFimex::DataImpl< C >. |
|
retrieve data as int
Implemented in MetNoFimex::DataImpl< C >. |
|
retrieve data as short
Implemented in MetNoFimex::DataImpl< C >. |
|
retrieve data as double
Implemented in MetNoFimex::DataImpl< C >. |
|
retrieve data as float (eventually copy)
Implemented in MetNoFimex::DataImpl< C >. |
|
retrieve data as int
Implemented in MetNoFimex::DataImpl< C >. |
|
retrieve data as short
Implemented in MetNoFimex::DataImpl< C >. |
|
retrieve the whole array as a string (with possible separator)
Implemented in MetNoFimex::DataImpl< C >. |
|
sizeof the data-impl datatype
Implemented in MetNoFimex::DataImpl< C >. |
|
convert the datatype from one type,fill,scale,offset to another
Implemented in MetNoFimex::DataImpl< C >. |
|
Implemented in MetNoFimex::DataImpl< C >. |
|
set a value at the desired position
Implemented in MetNoFimex::DataImpl< C >. |
|
set the values from another Data implementation
Implemented in MetNoFimex::DataImpl< C >, MetNoFimex::DataImpl< C >, MetNoFimex::DataImpl< C >, MetNoFimex::DataImpl< C >, MetNoFimex::DataImpl< C >, MetNoFimex::DataImpl< C >, MetNoFimex::DataImpl< C >, MetNoFimex::DataImpl< C >, MetNoFimex::DataImpl< C >, MetNoFimex::DataImpl< C >, and MetNoFimex::DataImpl< C >. |
|
size of the data
Implemented in MetNoFimex::DataImpl< C >. |
|
get a slice of the data This slices a multidimensional chunk out of the data. All parameters must be vectors of the same size (dimension of array). The first dimension is the fastest moving index (fortran arrays)
Implemented in MetNoFimex::DataImpl< C >. |
|
printing of the current data to ostream, with optional separator
Implemented in MetNoFimex::DataImpl< C >. |