# MI - Fimex: MetNoFimex::NetCDF_CDMWriter Class Reference

# MetNoFimex::NetCDF_CDMWriter Class Reference

`#include <NetCDF_CDMWriter.h>`

Inheritance diagram for MetNoFimex::NetCDF_CDMWriter:

List of all members.

## Public Member Functions

| NetCDF_CDMWriter (const boost::shared_ptr< CDMReader > cdmReader, const std::string &outputFile, std::string configFile="", int version=3)
virtual | ~NetCDF_CDMWriter ()
const std::string & | getVariableName (const std::string &varName) const
const std::string & | getDimensionName (const std::string &dimName) const
const CDMAttribute & | getAttribute (const std::string &varName, const std::string &attName) const throw (CDMException)

## Constructor & Destructor Documentation

MetNoFimex::NetCDF_CDMWriter::NetCDF_CDMWriter | ( | const boost::shared_ptr< CDMReader > | cdmReader,
|  | const std::string & | outputFile,
|  | std::string | configFile = `""`,
|  | int | version = `3` |
| ) |  |  |

Parameters:

  | cdmReader | dataSource
  | outputFile | file-name to write to
  | configFile | xml-configuration
  | netcdf | version, can be 3 or 4; 4 requires compilation against netcdf-4.0 or higher

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

## Member Function Documentation

const std::string& MetNoFimex::NetCDF_CDMWriter::getVariableName | ( | const std::string & | varName | ) | const

Warning:
  only public for testing

Returns:
  the new name of a variable, eventually changed by the writers config

const std::string& MetNoFimex::NetCDF_CDMWriter::getDimensionName | ( | const std::string & | dimName | ) | const

Warning:
  only public for testing

Returns:
  the new name of a dimension, eventually changed by the writers config

const CDMAttribute& MetNoFimex::NetCDF_CDMWriter::getAttribute | ( | const std::string & | varName,
|  | const std::string & | attName |
| ) |  |  | const throw (CDMException)

Warning:
  only public for testing

Parameters:

  | varName | original variable name (before config: newname)
  | attName | original attribute name (before config: newname)

Returns:
  an attribute contained in the writers attribute, possibly added by config

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

- include/fimex/NetCDF_CDMWriter.h