# MI - Fimex: MetNoFimex::GribApiCDMWriter_Impl1 Class Reference

# MetNoFimex::GribApiCDMWriter_Impl1 Class Reference

`#include <GribApiCDMWriter_Impl1.h>`

Inheritance diagram for MetNoFimex::GribApiCDMWriter_Impl1:

List of all members.

## Public Member Functions

| GribApiCDMWriter_Impl1 (const boost::shared_ptr< CDMReader > &cdmReader, const std::string &outputFile, const std::string &configFile)
virtual | ~GribApiCDMWriter_Impl1 ()
virtual void | setParameter (const std::string &varName, const FimexTime &fTime, double levelValue) throw (CDMException)
virtual void | setProjection (const std::string &varName) throw (CDMException)
virtual void | setLevel (const std::string &varName, double levelValue)
virtual boost::shared_ptr< Data > | handleTypeScaleAndMissingData (const std::string &varName, const FimexTime &fTime, double levelValue, boost::shared_ptr< Data > inData)

## Detailed Description

Implemenationn of a writer using GribApi for grib1

## Constructor & Destructor Documentation

MetNoFimex::GribApiCDMWriter_Impl1::GribApiCDMWriter_Impl1 | ( | const boost::shared_ptr< CDMReader > & | cdmReader,
|  | const std::string & | outputFile,
|  | const std::string & | configFile |
| ) |  |  |

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

## Member Function Documentation

virtual void MetNoFimex::GribApiCDMWriter_Impl1::setParameter | ( | const std::string & | varName,
|  | const FimexTime & | fTime,
|  | double | levelValue |
| ) |  |  | throw (CDMException)`[virtual]`

Implements MetNoFimex::GribApiCDMWriter_ImplAbstract.

virtual void MetNoFimex::GribApiCDMWriter_Impl1::setProjection | ( | const std::string & | varName | ) | throw (CDMException)`[virtual]`

set the projection parameters, throw an exception if none are available

Parameters:

  | varName |

Exceptions:

  | CDMException | if parameters cannot be set

Implements MetNoFimex::GribApiCDMWriter_ImplAbstract.

virtual void MetNoFimex::GribApiCDMWriter_Impl1::setLevel | ( | const std::string & | varName,
|  | double | levelValue |
| ) |  |  | `[virtual]`

Implements MetNoFimex::GribApiCDMWriter_ImplAbstract.

virtual boost::shared_ptr<Data> MetNoFimex::GribApiCDMWriter_Impl1::handleTypeScaleAndMissingData | ( | const std::string & | varName,
|  | const FimexTime & | fTime,
|  | double | levelValue,
|  | boost::shared_ptr< Data > | inData |
| ) |  |  | `[virtual]`

add the missing value to the gribHandle, rescale the data if needed and change the datatype if needed, change the missingValue of the data if need

Returns:
  modified data

Implements MetNoFimex::GribApiCDMWriter_ImplAbstract.

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

- include/fimex/GribApiCDMWriter_Impl1.h