4#include "ncException.h"
37 if(
getTypeClass() != NC_VLEN)
throw NcException(
"The NcType object must be the base of an Vlen type.",__FILE__,__LINE__);
66 if(
getTypeClass() != NC_VLEN)
throw NcException(
"The NcType object must be the base of a Vlen type.",__FILE__,__LINE__);
72 char charName[NC_MAX_NAME+1];
73 nc_type base_nc_typep;
75 ncCheck(nc_inq_vlen(
groupId,
myId,charName,&datum_sizep,&base_nc_typep),__FILE__,__LINE__);
76 switch (base_nc_typep) {
77 case NC_BYTE :
return ncByte;
79 case NC_CHAR :
return ncChar;
81 case NC_USHORT :
return ncUshort;
82 case NC_INT :
return ncInt;
83 case NC_UINT :
return ncUint;
Class represents a netCDF group.
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.
NcType & operator=(const NcType &rhs)
assignment operator
ncType
List of netCDF types that can be represented.
Class represents a netCDF VLEN type.
NcType getBaseType() const
Returns the base type.
NcVlenType & operator=(const NcVlenType &rhs)
assignment operator
NcVlenType()
Constructor generates a null object.
Base object is thrown if a netCDF exception is encountered.
NcShort ncShort
A global instance of the NcShort class within the netCDF namespace.
NcFloat ncFloat
A global instance of the NcFloat class within the netCDF namespace.
NcInt64 ncInt64
A global instance of the NcInt64 class within the netCDF namespace.
NcUint64 ncUint64
A global instance of the NcUint64 class within the netCDF namespace.
NcUint ncUint
A global instance of the NcUint class within the netCDF namespace.
NcString ncString
A global instance of the NcString class within the netCDF namespace.
NcInt ncInt
A global instance of the NcInt class within the netCDF namespace.
NcDouble ncDouble
A global instance of the NcDouble class within the netCDF namespace.
void ncCheck(int retCode, const char *file, int line)
Function checks error code and if necessary throws an exception.
NcUbyte ncUbyte
A global instance of the NcUbyte class within the netCDF namespace.
NcChar ncChar
A global instance of the NcChar class within the netCDF namespace.
NcByte ncByte
A global instance of the NcByte class within the netCDF namespace.