|
| C_CDMReader (boost::shared_ptr< CDMReader > dataReader) |
|
virtual | ~C_CDMReader () |
|
virtual DataPtr | getDataSlice (const std::string &varName, size_t unLimDimPos) |
| data-reading function to be called from the CDMWriter More...
|
|
virtual void | setDoubleCallbackFunction (const std::string &varName, doubleDatasliceCallbackPtr callback) |
|
| CDMReader () |
|
virtual | ~CDMReader () |
|
virtual const CDM & | getCDM () const |
|
virtual CDM & | getInternalCDM () |
|
virtual std::vector< std::size_t > | getDims (std::string varName) |
| Read the sizes of the dimensions belonging to a variable. More...
|
|
virtual std::vector< std::size_t > | getDimsSlice (std::string varName) |
| Read the sizes of the dimensions belonging to a variable slice. More...
|
|
virtual DataPtr | getDataSlice (const std::string &varName, const SliceBuilder &sb) |
| data-reading function to be called from the CDMWriter More...
|
|
virtual DataPtr | getData (const std::string &varName) |
| data-reading function to be called from the CDMWriter More...
|
|
virtual DataPtr | getScaledDataSlice (const std::string &varName, size_t unLimDimPos) |
| read and scale a dataslice More...
|
|
virtual DataPtr | getScaledDataSliceInUnit (const std::string &varName, const std::string &unit, size_t unLimDimPos) |
| read and scale a dataslice to a known unit More...
|
|
virtual DataPtr | getScaledDataSlice (const std::string &varName, const SliceBuilder &sb) |
| read and scale a dataslice More...
|
|
virtual DataPtr | getScaledDataSliceInUnit (const std::string &varName, const std::string &unit, const SliceBuilder &sb) |
| read and scale a dataslice to a set unit More...
|
|
virtual DataPtr | getScaledData (const std::string &varName) |
| read and scale the complete data More...
|
|
virtual DataPtr | getScaledDataInUnit (const std::string &varName, const std::string &unit) |
| read and scale the complete data to a set unit More...
|
|
This class should be used by people who want write an implementation of a CDMReader in C. They should set a callback-function to retrieve a variable with the getDataSlice functions.
virtual DataPtr MetNoFimex::C_CDMReader::getDataSlice |
( |
const std::string & |
varName, |
|
|
size_t |
unLimDimPos |
|
) |
| |
|
virtual |
data-reading function to be called from the CDMWriter
This methods needs to be implemented by the CDMReader. It should provide the data for each variable, either by reading from disk, converting from another CDMReader or reading from an in-memory data-section.
This function should retrieve the whole data for a dataset without unlimited dimension if the unLimDimPos == 0.
- Parameters
-
varName | name of the variable to read |
unLimDimPos | (optional) if the variable contains a unlimited dimension (max one allowed) an slice of this position is returned |
- Exceptions
-
CDMException | on errors related to the CDM in combination with the underlying data-structure. It might also throw other (IO-)exceptions. |
Implements MetNoFimex::CDMReader.