Previous: Class Hierarchy, Up: Introduction


Auxiliary Types and Constants

The netCDF classes use several auxiliary types for arguments and return types from member functions: NcToken, NcType, NcBool, and ncbyte.

NcToken
Used for names for netCDF objects, in particular variable names, dimension names, and attribute names. Currently this is just a typedef for const char*.


NcType
Used for specifying netCDF external value types. Currently this is an enumerated type with the following legitimate values: ncByte, ncChar, ncShort, ncInt, ncLong (deprecated), ncFloat, and ncDouble.


NcBool
Used for the return type of some member functions. If the member function fails, 0 is returned, otherwise some non-zero value. Currently this is just a typedef for unsigned int. It will be changed to bool when all C++ compilers support the new bool type.


ncbyte
Used to declare values of type ncByte, for 8-bit integer data. This is a typedef for signed char.