netcdf-C++
|
#include <ncFile.h>
Public Types | |
enum | FileFormat { classic, classic64, nc4, nc4classic } |
enum | FileMode { read, write, replace, newFile } |
![]() | |
enum | GroupLocation { ChildrenGrps, ParentsGrps, ChildrenOfChildrenGrps, AllChildrenGrps, ParentsAndCurrentGrps, AllGrps } |
enum | Location { Current, Parents, Children, ParentsAndCurrent, ChildrenAndCurrent, All } |
Public Member Functions | |
NcFile (const NcGroup &rhs) | |
The copy constructor. More... | |
NcFile () | |
NcFile (const std::string &filePath, FileMode fMode) | |
NcFile (const std::string &filePath, FileMode fMode, FileFormat fFormat) | |
NcFile & | operator= (const NcGroup &rhs) |
virtual | ~NcFile () |
![]() | |
NcCompoundType | addCompoundType (const std::string &name, size_t size) const |
NcDim | addDim (const std::string &name, size_t dimSize) const |
NcDim | addDim (const std::string &name) const |
NcEnumType | addEnumType (const std::string &name, NcEnumType::ncEnumType basetype) const |
NcGroup | addGroup (const std::string &name) const |
NcOpaqueType | addOpaqueType (const std::string &name, size_t size) const |
NcVar | addVar (const std::string &name, const std::string &typeName, const std::string &dimName) const |
NcVar | addVar (const std::string &name, const NcType &ncType, const NcDim &ncDim) const |
NcVar | addVar (const std::string &name, const std::string &typeName, const std::vector< std::string > &dimNames) const |
NcVar | addVar (const std::string &name, const NcType &ncType, const std::vector< NcDim > &ncDimVector) const |
NcVlenType | addVlenType (const std::string &name, NcType &basetype) const |
NcGroupAtt | getAtt (const std::string &name, NcGroup::Location location=Current) const |
int | getAttCount (NcGroup::Location location=Current) const |
std::multimap< std::string, NcGroupAtt > | getAtts (NcGroup::Location location=Current) const |
std::set< NcGroupAtt > | getAtts (const std::string &name, NcGroup::Location location=Current) const |
void | getCoordVar (std::string &coordVarName, NcDim &ncDim, NcVar &ncVar, NcGroup::Location location=Current) const |
std::map< std::string, NcGroup > | getCoordVars (NcGroup::Location location=Current) const |
NcDim | getDim (const std::string &name, NcGroup::Location location=Current) const |
int | getDimCount (NcGroup::Location location=Current) const |
std::multimap< std::string, NcDim > | getDims (NcGroup::Location location=Current) const |
std::set< NcDim > | getDims (const std::string &name, NcGroup::Location location=Current) const |
NcGroup | getGroup (const std::string &name, NcGroup::GroupLocation location=ChildrenGrps) const |
int | getGroupCount (NcGroup::GroupLocation location=ChildrenGrps) const |
std::multimap< std::string, NcGroup > | getGroups (NcGroup::GroupLocation location=ChildrenGrps) const |
std::set< NcGroup > | getGroups (const std::string &name, NcGroup::GroupLocation location=ChildrenGrps) const |
int | getId () const |
std::string | getName (bool fullName=false) const |
NcGroup | getParentGroup () const |
NcType | getType (const std::string &name, NcGroup::Location location=Current) const |
int | getTypeCount (NcGroup::Location location=Current) const |
int | getTypeCount (NcType::ncType enumType, NcGroup::Location location=Current) const |
std::multimap< std::string, NcType > | getTypes (NcGroup::Location location=Current) const |
std::set< NcType > | getTypes (const std::string &name, NcGroup::Location location=Current) const |
std::set< NcType > | getTypes (NcType::ncType enumType, NcGroup::Location location=Current) const |
std::set< NcType > | getTypes (const std::string &name, NcType::ncType enumType, NcGroup::Location location=Current) const |
NcVar | getVar (const std::string &name, NcGroup::Location location=Current) const |
int | getVarCount (NcGroup::Location location=Current) const |
std::multimap< std::string, NcVar > | getVars (NcGroup::Location location=Current) const |
std::set< NcVar > | getVars (const std::string &name, NcGroup::Location location=Current) const |
bool | isNull () const |
bool | isRootGroup () const |
NcGroup () | |
NcGroup (const NcGroup &rhs) | |
bool | operator!= (const NcGroup &rhs) const |
NcGroup & | operator= (const NcGroup &rhs) |
bool | operator== (const NcGroup &rhs) const |
NcGroupAtt | putAtt (const std::string &name, size_t len, const char **dataValues) const |
NcGroupAtt | putAtt (const std::string &name, const std::string &dataValues) const |
NcGroupAtt | putAtt (const std::string &name, const NcType &type, short datumValue) const |
NcGroupAtt | putAtt (const std::string &name, const NcType &type, int datumValue) const |
NcGroupAtt | putAtt (const std::string &name, const NcType &type, long datumValue) const |
NcGroupAtt | putAtt (const std::string &name, const NcType &type, float datumValue) const |
NcGroupAtt | putAtt (const std::string &name, const NcType &type, double datumValue) const |
NcGroupAtt | putAtt (const std::string &name, const NcType &type, unsigned short datumValue) const |
NcGroupAtt | putAtt (const std::string &name, const NcType &type, unsigned int datumValue) const |
NcGroupAtt | putAtt (const std::string &name, const NcType &type, unsigned long long datumValue) const |
NcGroupAtt | putAtt (const std::string &name, const NcType &type, long long datumValue) const |
NcGroupAtt | putAtt (const std::string &name, const NcType &type, size_t len, const unsigned char *dataValues) const |
NcGroupAtt | putAtt (const std::string &name, const NcType &type, size_t len, const signed char *dataValues) const |
NcGroupAtt | putAtt (const std::string &name, const NcType &type, size_t len, const short *dataValues) const |
NcGroupAtt | putAtt (const std::string &name, const NcType &type, size_t len, const int *dataValues) const |
NcGroupAtt | putAtt (const std::string &name, const NcType &type, size_t len, const long *dataValues) const |
NcGroupAtt | putAtt (const std::string &name, const NcType &type, size_t len, const float *dataValues) const |
NcGroupAtt | putAtt (const std::string &name, const NcType &type, size_t len, const double *dataValues) const |
NcGroupAtt | putAtt (const std::string &name, const NcType &type, size_t len, const unsigned short *dataValues) const |
NcGroupAtt | putAtt (const std::string &name, const NcType &type, size_t len, const unsigned int *dataValues) const |
NcGroupAtt | putAtt (const std::string &name, const NcType &type, size_t len, const unsigned long long *dataValues) const |
NcGroupAtt | putAtt (const std::string &name, const NcType &type, size_t len, const long long *dataValues) const |
NcGroupAtt | putAtt (const std::string &name, const NcType &type, size_t len, const void *dataValues) const |
virtual | ~NcGroup () |
Additional Inherited Members | |
![]() | |
bool | nullObject |
Class represents a netCDF root group. The Ncfile class is the same as the NcGroup class with the additional functionality for opening and closing files.
NcFile::NcFile | ( | const NcGroup & | rhs | ) |
The copy constructor.
The copy constructor.
NcFile::NcFile | ( | ) |
Constructor generates a null object.
netCDF::NcFile::NcFile | ( | const std::string & | filePath, |
FileMode | fMode | ||
) |
netCDF::NcFile::NcFile | ( | const std::string & | filePath, |
FileMode | fMode, | ||
FileFormat | fFormat | ||
) |
|
virtual |
destructor