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 NcValues, Up: Auxiliary Classes



Class NcError

This class provides control for netCDF error handling. Declaring an NcError object temporarily changes the error-handling behavior for all netCDF classes until the NcError object is destroyed (typically by going out of scope), at which time the previous error-handling behavior is restored.

Public Member Functions

NcError( Behavior b = verbose_fatal )
The constructor saves the previous error state for restoration when the destructor is invoked, and sets a new specified state. Valid error states are NcError::silent_nonfatal, NcError::verbose_nonfatal, NcError::silent_fatal, or NcError::verbose_fatal, to control whether error messages are output from the underlying library and whether such messages are fatal or nonfatal.


~NcError( void )
Destructor, restores previous error state.


int get_err( void )
Returns most recent error, as enumerated in netcdf.h.
 
 
  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