96 std::string
getName(
bool fullName=
false)
const;
219 NcVar addVar(
const std::string& name,
const std::string& typeName,
const std::string& dimName)
const;
243 NcVar addVar(
const std::string& name,
const std::string& typeName,
const std::vector<std::string>& dimNames)
const;
256 NcVar addVar(
const std::string& name,
const NcType& ncType,
const std::vector<NcDim>& ncDimVector)
const;
Class represents a netCDF compound type.
Class represents a netCDF dimension.
Class represents a netCDF enum type.
ncEnumType
List of NetCDF-4 Enumeration types.
Class represents a netCDF group attribute.
Class represents a netCDF group.
std::set< NcType > getTypes(const std::string &name, NcGroup::Location location=Current) const
Gets the collection of NcType objects with a given name.
NcGroupAtt putAtt(const std::string &name, const NcType &type, long datumValue) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
NcGroupAtt putAtt(const std::string &name, const NcType &type, size_t len, const double *dataValues) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
NcGroupAtt putAtt(const std::string &name, const NcType &type, short datumValue) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
NcGroupAtt putAtt(const std::string &name, const NcType &type, long long datumValue) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
int getGroupCount(NcGroup::GroupLocation location=ChildrenGrps) const
Gets the number of NcGroup objects.
virtual ~NcGroup()
destructor
NcGroupAtt putAtt(const std::string &name, const NcType &type, size_t len, const long long *dataValues) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
NcVar addVar(const std::string &name, const NcType &ncType, const std::vector< NcDim > &ncDimVector) const
Adds a new multi-dimensional netCDF variable.
NcGroupAtt putAtt(const std::string &name, const NcType &type, size_t len, const short *dataValues) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
friend bool operator>(const NcGroup &lhs, const NcGroup &rhs)
comparator operator
NcGroupAtt putAtt(const std::string &name, const NcType &type, size_t len, const unsigned short *dataValues) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
NcGroup & operator=(const NcGroup &rhs)
assignment operator
NcGroupAtt putAtt(const std::string &name, const NcType &type, size_t len, const unsigned char *dataValues) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
NcDim addDim(const std::string &name) const
Adds a new unlimited netCDF dimension.
NcGroupAtt putAtt(const std::string &name, const NcType &type, int datumValue) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
NcCompoundType addCompoundType(const std::string &name, size_t size) const
Adds a new netCDF UserDefined type.
bool operator!=(const NcGroup &rhs) const
!= operator
NcGroupAtt putAtt(const std::string &name, const NcType &type, unsigned long long datumValue) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
NcVlenType addVlenType(const std::string &name, NcType &basetype) const
Adds a new netCDF Vlen type.
NcGroup getGroup(const std::string &name, NcGroup::GroupLocation location=ChildrenGrps) const
Gets the named child NcGroup object.
void getCoordVar(std::string &coordVarName, NcDim &ncDim, NcVar &ncVar, NcGroup::Location location=Current) const
Gets the NcDim and NcVar object pair for a named coordinate variable.
int getTypeCount(NcGroup::Location location=Current) const
Gets the number of type objects.
NcVar addVar(const std::string &name, const std::string &typeName, const std::string &dimName) const
Adds a new netCDF variable.
int getId() const
Gets the group id.
NcGroupAtt putAtt(const std::string &name, const NcType &type, size_t len, const long *dataValues) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
NcGroupAtt putAtt(const std::string &name, const NcType &type, unsigned short datumValue) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
NcType getType(const std::string &name, NcGroup::Location location=Current) const
Gets the NcType object with a given name.
int getVarCount(NcGroup::Location location=Current) const
Gets the number of NcVar objects in this group.
std::multimap< std::string, NcGroupAtt > getAtts(NcGroup::Location location=Current) const
Gets the collection of NcGroupAtt objects.
NcGroupAtt putAtt(const std::string &name, const NcType &type, double datumValue) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
NcGroupAtt putAtt(const std::string &name, const NcType &type, size_t len, const int *dataValues) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
std::set< NcVar > getVars(const std::string &name, NcGroup::Location location=Current) const
Gets all NcVar objects with a given name.
NcGroupAtt putAtt(const std::string &name, size_t len, const char **dataValues) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
NcGroup()
Constructor generates a null object.
NcDim addDim(const std::string &name, size_t dimSize) const
Adds a new netCDF dimension.
NcGroupAtt getAtt(const std::string &name, NcGroup::Location location=Current) const
Gets the named NcGroupAtt object.
bool isRootGroup() const
Returns true if this is the root group, otherwise returns false.
NcGroup addGroup(const std::string &name) const
Adds a new child netCDF group object.
Location
The enumeration list contains the options for selecting groups.
@ ParentsAndCurrent
Select from contents of current and parents groups.
@ Current
Select from contents of current group.
@ Children
Select from contents of children groups.
@ ChildrenAndCurrent
Select from contents of current and child groups.
@ All
Select from contents of current, parents and child groups.
@ Parents
Select from contents of parents groups.
bool operator==(const NcGroup &rhs) const
equivalence operator
NcGroupAtt putAtt(const std::string &name, const NcType &type, size_t len, const unsigned int *dataValues) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
std::multimap< std::string, NcVar > getVars(NcGroup::Location location=Current) const
Get the collection of NcVar objects.
NcVar addVar(const std::string &name, const NcType &ncType, const NcDim &ncDim) const
Adds a new netCDF variable.
NcVar addVar(const std::string &name, const std::string &typeName, const std::vector< std::string > &dimNames) const
Adds a new netCDF multi-dimensional variable.
std::set< NcType > getTypes(const std::string &name, NcType::ncType enumType, NcGroup::Location location=Current) const
Gets the collection of NcType objects with a given name and data type.
std::map< std::string, NcGroup > getCoordVars(NcGroup::Location location=Current) const
Gets a collection of coordinate variables.
NcGroupAtt putAtt(const std::string &name, const NcType &type, size_t len, const void *dataValues) const
Creates a new NetCDF group attribute or if already exisiting replaces it.
NcGroupAtt putAtt(const std::string &name, const NcType &type, size_t len, const signed char *dataValues) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
GroupLocation
The enumeration list contains the options for selecting groups (used for returned set of NcGroup obje...
@ ParentsAndCurrentGrps
Select from set of parent groups(includes the current group).
@ ChildrenOfChildrenGrps
Select from set of all children of children in the current group.
@ ParentsGrps
Select from set of parent groups (excludes the current group).
@ AllGrps
Select from set of parent groups, current groups and all the children beneath.
@ ChildrenGrps
Select from the set of children in the current group.
@ AllChildrenGrps
Select from set of all children of the current group and beneath.
NcOpaqueType addOpaqueType(const std::string &name, size_t size) const
Adds a new netCDF Opaque type.
std::string getName(bool fullName=false) const
Gets the group name.
NcGroupAtt putAtt(const std::string &name, const NcType &type, float datumValue) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
int getAttCount(NcGroup::Location location=Current) const
Gets the number of group attributes.
NcEnumType addEnumType(const std::string &name, NcEnumType::ncEnumType basetype) const
Adds a new netCDF enum type.
NcGroup getParentGroup() const
Gets the parent group.
NcVar getVar(const std::string &name, NcGroup::Location location=Current) const
Gets the named NcVar object.
bool nullObject
assignment operator
NcDim getDim(const std::string &name, NcGroup::Location location=Current) const
Gets the named NcDim object.
NcGroupAtt putAtt(const std::string &name, const NcType &type, unsigned int datumValue) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
NcVar addVar(const std::string &name, const NcType &ncType) const
Adds a new netCDF scalar variable.
bool isNull() const
Returns true if this object is null (i.e.
std::multimap< std::string, NcGroup > getGroups(NcGroup::GroupLocation location=ChildrenGrps) const
Gets the collection of NcGroup objects.
friend bool operator<(const NcGroup &lhs, const NcGroup &rhs)
comparator operator
NcGroupAtt putAtt(const std::string &name, const NcType &type, size_t len, const unsigned long long *dataValues) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
std::multimap< std::string, NcType > getTypes(NcGroup::Location location=Current) const
Gets the collection of NcType objects.
NcGroupAtt putAtt(const std::string &name, const std::string &dataValues) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
std::set< NcGroupAtt > getAtts(const std::string &name, NcGroup::Location location=Current) const
Gets all NcGroupAtt objects with a given name.
int getDimCount(NcGroup::Location location=Current) const
Gets the number of NcDim objects.
std::set< NcDim > getDims(const std::string &name, NcGroup::Location location=Current) const
Gets NcDim objects with a given name.
NcGroupAtt putAtt(const std::string &name, const NcType &type, size_t len, const float *dataValues) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
std::multimap< std::string, NcDim > getDims(NcGroup::Location location=Current) const
Gets the collection of NcDim objects.
Class represents a netCDF opaque type.
Base class inherited by NcOpaque, NcVlen, NcCompound and NcEnum classes.
ncType
List of netCDF types that can be represented.
Class represents a netCDF variable.
Class represents a netCDF VLEN type.