29 nullObject = rhs.nullObject;
37 nullObject(rhs.nullObject),
54 myId = typTmp.getId();
77 return nullObject == rhs.nullObject;
85 return !(*
this == rhs);
95 char charName[NC_MAX_NAME+1];
102 ncCheck(nc_inq_type(g_ncid,
myId,charName,sizep),__FILE__,__LINE__);
103 return string(charName);
111 ncCheck(nc_inq_type(g_ncid,
myId,charName,&sizep),__FILE__,__LINE__);
123 case NC_INT :
return nc_INT;
135 nc_type* base_nc_typep=NULL;
136 size_t* nfieldsp=NULL;
138 ncCheck(nc_inq_user_type(
groupId,
myId,name,sizep,base_nc_typep,nfieldsp,&classp),__FILE__,__LINE__);
139 return static_cast<ncType>(classp);
147 case nc_BYTE :
return string(
"nc_BYTE");
148 case nc_UBYTE :
return string(
"nc_UBYTE");
149 case nc_CHAR :
return string(
"nc_CHAR");
150 case nc_SHORT :
return string(
"nc_SHORT");
151 case nc_USHORT :
return string(
"nc_USHORT");
152 case nc_INT :
return string(
"nc_INT");
153 case nc_UINT :
return string(
"nc_UINT");
154 case nc_INT64 :
return string(
"nc_INT64");
155 case nc_UINT64 :
return string(
"nc_UINT64");
156 case nc_FLOAT :
return string(
"nc_FLOAT");
157 case nc_DOUBLE :
return string(
"nc_DOUBLE");
158 case nc_STRING :
return string(
"nc_STRING");
159 case nc_VLEN :
return string(
"nc_VLEN");
160 case nc_OPAQUE :
return string(
"nc_OPAQUE");
161 case nc_ENUM :
return string(
"nc_ENUM");
Base class inherited by NcOpaque, NcVlen, NcCompound and NcEnum classes.
NcType getType(const std::string &name, NcGroup::Location location=Current) const
Gets the NcType object with a given name.
int getId() const
Gets the group id.
bool operator==(const NcType &) const
equivalence operator
Class represents a netCDF group.
ncType
List of netCDF types that can be represented.
single precision floating point number
std::string getTypeClassName() const
Return a string containing the name of the enumerated type.
std::string getName() const
The name of this type.
nc_type getId() const
The netCDF Id of this type.
Select from contents of current and parents groups.
NcType()
Constructor generates a null object.
void ncCheck(int retCode, const char *file, int line)
Function checks error code and if necessary throws an exception.
bool operator!=(const NcType &) const
!= operator
netCDF::NcGroup getParentGroup() const
Gets parent group.
size_t getSize() const
The size in bytes.
ncType getTypeClass() const
The type class returned as enumeration type.
double precision floating point number