# MI - Fimex: MetNoFimex::TimeLevelDataSliceFetcher Class Reference

# MetNoFimex::TimeLevelDataSliceFetcher Class Reference

read a slice of a given time/level combination from a cdmReader More...

`#include <TimeLevelDataSliceFetcher.h>`

List of all members.

## Public Member Functions

| TimeLevelDataSliceFetcher (boost::shared_ptr< CDMReader > cdmReader, const std::string &varName)
virtual | ~TimeLevelDataSliceFetcher ()
boost::shared_ptr< Data > | getTimeLevelSlice (size_t time, size_t level) throw (CDMException)

## Detailed Description

read a slice of a given time/level combination from a cdmReader

## Constructor & Destructor Documentation

MetNoFimex::TimeLevelDataSliceFetcher::TimeLevelDataSliceFetcher | ( | boost::shared_ptr< CDMReader > | cdmReader,
|  | const std::string & | varName |
| ) |  |  |

initialize the Fetcher

Parameters:

  | cdmReader | the reader to fetch the original data from
  | varName | the variable to read the data from

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

## Member Function Documentation

boost::shared_ptr<Data> MetNoFimex::TimeLevelDataSliceFetcher::getTimeLevelSlice | ( | size_t | time,
|  | size_t | level |
| ) |  |  | throw (CDMException)

get the slice of time at position time and level at position level join unlimited dimensions if needed, slice data if needed

Parameters:

  | time | the position of the time according to the variables level-dimension
  | level | the position of the level according to the level-dimension

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

- include/fimex/TimeLevelDataSliceFetcher.h