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");
Class represents a netCDF group.
int getId() const
Gets the group id.
NcType getType(const std::string &name, NcGroup::Location location=Current) const
Gets the NcType object with a given name.
@ ParentsAndCurrent
Select from contents of current and parents groups.
Base class inherited by NcOpaque, NcVlen, NcCompound and NcEnum classes.
ncType getTypeClass() const
The type class returned as enumeration type.
netCDF::NcGroup getParentGroup() const
Gets parent group.
NcType()
Constructor generates a null object.
size_t getSize() const
The size in bytes.
bool operator==(const NcType &) const
equivalence operator
std::string getTypeClassName() const
Return a string containing the name of the enumerated type.
ncType
List of netCDF types that can be represented.
@ nc_DOUBLE
double precision floating point number
@ nc_UBYTE
unsigned 1 byte int
@ nc_OPAQUE
"NcOpaque type"
@ nc_CHAR
ISO/ASCII character.
@ nc_SHORT
signed 2 byte integer
@ nc_BYTE
signed 1 byte integer
@ nc_UINT64
unsigned 8-byte int
@ nc_UINT
unsigned 4-byte int
@ nc_INT
signed 4 byte integer
@ nc_INT64
signed 8-byte int
@ nc_USHORT
unsigned 2-byte int
@ nc_FLOAT
single precision floating point number
@ nc_COMPOUND
"NcCompound type"
std::string getName() const
The name of this type.
bool operator!=(const NcType &) const
!= operator
void ncCheck(int retCode, const char *file, int line)
Function checks error code and if necessary throws an exception.