# MI - Fimex: MetNoFimex::GribCDMReader Class Reference

# MetNoFimex::GribCDMReader Class Reference

`#include <GribCDMReader.h>`

Inheritance diagram for MetNoFimex::GribCDMReader:

List of all members.

## Public Member Functions

| GribCDMReader (const std::vector< std::string > &fileNames, const std::string &configFile)
virtual | ~GribCDMReader ()
virtual boost::shared_ptr< Data > | getDataSlice (const std::string &varName, size_t unLimDimPos) throw (CDMException)
| data-reading function to be called from the CDMWriter

## Constructor & Destructor Documentation

MetNoFimex::GribCDMReader::GribCDMReader | ( | const std::vector< std::string > & | fileNames,
|  | const std::string & | configFile |
| ) |  |  |

virtual MetNoFimex::GribCDMReader::~GribCDMReader | ( |  | ) | `[virtual]`

## Member Function Documentation

virtual boost::shared_ptr<Data> MetNoFimex::GribCDMReader::getDataSlice | ( | const std::string & | varName,
|  | size_t | unLimDimPos |
| ) |  |  | throw (CDMException)`[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

Implements MetNoFimex::CDMReader.

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

- include/fimex/GribCDMReader.h