Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

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 currently a typedef for unsigned char, but it may be changed to a typedef for signed char, so don't depend on the underlying representation.)
 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690