Inheritance diagram for code::NetcdfFormatter:
This is similar to the Formatter found in wdssii, but it does not have the same interface.
Public Types | |
ncTypeName | |
ncDataType | |
ncConfigFile | |
ncDataIdentifier | |
ncNumGlobals | |
enum | GlobalAttr { ncTypeName, ncDataType, ncConfigFile, ncDataIdentifier, ncNumGlobals } |
The global string attributes we expect to see in every file. More... | |
Public Member Functions | |
virtual SmartPtr< DataType > | createObject (const NetcdfFile &ncfile, const std::vector< std::string > &prms)=0 |
The way to obtain the object. | |
virtual | ~NetcdfFormatter () |
void | setAttributes (DataType &dt, const NetcdfFile &) |
The builder will pass in the DataType and ask to fill attributes via this method. | |
Static Public Member Functions | |
static SmartPtr< NetcdfFormatter > | getFormatter (const std::string &type) |
Returns the appropriate formatter given the type encoded in the netcdf file. | |
static std::string | getAttrVal (const NetcdfFile &ncfile, const std::string &attr_name) |
Returns the value for a global string attribute of this name. | |
static int | getGlobalAttr (const NetcdfFile &ncfile, std::vector< std::string > *all_attr, SpaceTimeRef *stref, SentinelDouble *FILE_MISSING_DATA, SentinelDouble *FILE_RANGE_FOLDED) |
Fills in all the global attributes expected by CODE in a netcdf file. | |
Protected Member Functions | |
NetcdfFormatter () | |
Only subclasses should try to construct a Formatter --> others should use getFormatter(). | |
Static Protected Member Functions | |
static void | introduce (const std::string &dataType, SmartPtr< NetcdfFormatter > new_subclass) |
Use this to introduce new subclasses. | |
Friends | |
class | NetcdfIndexWriter |
virtual code::NetcdfFormatter::~NetcdfFormatter | ( | ) | [virtual] |
code::NetcdfFormatter::NetcdfFormatter | ( | ) | [inline, protected] |
Only subclasses should try to construct a Formatter --> others should use getFormatter().
virtual SmartPtr<DataType> code::NetcdfFormatter::createObject | ( | const NetcdfFile & | ncfile, | |
const std::vector< std::string > & | prms | |||
) | [pure virtual] |
The way to obtain the object.
ncfile An open NetcdfFile object. prms Additional information needed by some data types
Implemented in code::NetcdfCartesianGrid2DFormatter, code::NetcdfCartesianGrid3DFormatter, code::NetcdfContourDataFormatter, code::NetcdfFieldDataFormatter, code::NetcdfLatLonGridFormatter, code::NetcdfLatLonHeightGridFormatter, code::NetcdfRadialSetFormatter, and code::NetcdfWindFieldFormatter.
static std::string code::NetcdfFormatter::getAttrVal | ( | const NetcdfFile & | ncfile, | |
const std::string & | attr_name | |||
) | [static] |
Returns the value for a global string attribute of this name.
static SmartPtr<NetcdfFormatter> code::NetcdfFormatter::getFormatter | ( | const std::string & | type | ) | [static] |
Returns the appropriate formatter given the type encoded in the netcdf file.
static int code::NetcdfFormatter::getGlobalAttr | ( | const NetcdfFile & | ncfile, | |
std::vector< std::string > * | all_attr, | |||
SpaceTimeRef * | stref, | |||
SentinelDouble * | FILE_MISSING_DATA, | |||
SentinelDouble * | FILE_RANGE_FOLDED | |||
) | [static] |
Fills in all the global attributes expected by CODE in a netcdf file.
static void code::NetcdfFormatter::introduce | ( | const std::string & | dataType, | |
SmartPtr< NetcdfFormatter > | new_subclass | |||
) | [static, protected] |
Use this to introduce new subclasses.
void code::NetcdfFormatter::setAttributes | ( | DataType & | dt, | |
const NetcdfFile & | ||||
) |
The builder will pass in the DataType and ask to fill attributes via this method.
friend class NetcdfIndexWriter [friend] |