Inheritance diagram for code::NetcdfCartesianGrid2DFormatter:
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 > &fileattrs) |
The way to obtain the object. | |
virtual | ~NetcdfCartesianGrid2DFormatter () |
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 void | introduceSelf () |
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. | |
Static Protected Member Functions | |
static void | introduce (const std::string &dataType, SmartPtr< NetcdfFormatter > new_subclass) |
Use this to introduce new subclasses. |
enum code::NetcdfFormatter::GlobalAttr [inherited] |
virtual code::NetcdfCartesianGrid2DFormatter::~NetcdfCartesianGrid2DFormatter | ( | ) | [virtual] |
virtual SmartPtr<DataType> code::NetcdfCartesianGrid2DFormatter::createObject | ( | const NetcdfFile & | ncfile, | |
const std::vector< std::string > & | fileattrs | |||
) | [virtual] |
The way to obtain the object.
ncfile,: | an open NetcdfFile object. | |
fileattrs,: | file name is first param of vector<string>. |
Implements code::NetcdfFormatter.
static std::string code::NetcdfFormatter::getAttrVal | ( | const NetcdfFile & | ncfile, | |
const std::string & | attr_name | |||
) | [static, inherited] |
Returns the value for a global string attribute of this name.
static SmartPtr<NetcdfFormatter> code::NetcdfFormatter::getFormatter | ( | const std::string & | type | ) | [static, inherited] |
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, inherited] |
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, inherited] |
Use this to introduce new subclasses.
static void code::NetcdfCartesianGrid2DFormatter::introduceSelf | ( | ) | [static] |
void code::NetcdfFormatter::setAttributes | ( | DataType & | dt, | |
const NetcdfFile & | ||||
) | [inherited] |
The builder will pass in the DataType and ask to fill attributes via this method.