# MI - Fimex: MetNoFimex::NcmlCDMReader Class Reference

# MetNoFimex::NcmlCDMReader Class Reference

`#include <NcmlCDMReader.h>`

Inheritance diagram for MetNoFimex::NcmlCDMReader:

List of all members.

## Public Member Functions

| NcmlCDMReader (std::string configFile) throw (CDMException)
| NcmlCDMReader (const boost::shared_ptr< CDMReader > dataReader, std::string configFile) throw (CDMException)
virtual | ~NcmlCDMReader ()
virtual boost::shared_ptr< Data > | getDataSlice (const std::string &varName, size_t unLimDimPos=0) throw (CDMException)

## Detailed Description

The NcmlCDMReader can be used as both standard reader of a data and as a manipulator for an existing CDM provided by a CDMReader.

In the case of a real reader, the ncml-configuration file needs to have the 'location' field set, which must point to a netcdf-file readable by NetCDF_CF10_CDMReader

The configuration file must be a standard ncml-file (versionn 2.2) as defined by http://www.unidata.ucar.edu/software/netcdf/ncml/.

Warning:
  The current version does not support aggregation.

## Constructor & Destructor Documentation

MetNoFimex::NcmlCDMReader::NcmlCDMReader | ( | std::string | configFile | ) | throw (CDMException)

Parameters:

  | configFile | ncml-file with location set

Exceptions:

  | CDMException |

MetNoFimex::NcmlCDMReader::NcmlCDMReader | ( | const boost::shared_ptr< CDMReader > | dataReader,
|  | std::string | configFile |
| ) |  |  | throw (CDMException)

Parameters:

  | cdmReader | a file reader opened elsewhere
  | configFile | ncml-file with location set

Exceptions:

  | CDMException |

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

## Member Function Documentation

virtual boost::shared_ptr<Data> MetNoFimex::NcmlCDMReader::getDataSlice | ( | const std::string & | varName,
|  | size_t | unLimDimPos = `0` |
| ) |  |  | throw (CDMException)`[virtual]`

reading the data from the required source

Implements MetNoFimex::CDMReader.

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

- include/fimex/NcmlCDMReader.h