
NhlUpdateData
The Fortran name of this function is NhlFUpdateData.This function is used to force a DataComm object to update its internal state to any changes that have occurred in associated DataItems.
C synopsis
#include <ncarg/hlu/DataComm.h> NhlErrorTypes NhlUpdateData( int dcommid )
Fortran synopsis
subroutine NhlFUpdateData(dcommid, ierr) integer dcommid, ierr
Arguments
- dcommid (input)
- Identifies the DataComm object to update.
- ierr (output, Fortran only)
- Error code.
Types
Type name: NhlTErrorTypes Definition: typedef enum _NhlErrType{ NhlFATAL = -4, /* "FATAL" */ NhlWARNING = -3, /* "WARNING" */ NhlINFO = -2, /* "INFO" */ NhlNOERROR = -1 /* "NOERROR" */ } NhlErrorTypes;
Description
This function is used to force the given DataComm object to update its internal state. This function is only useful if the dcDelayCompute resource of the DataComm object is set to true. Otherwise the DataComm object will already be up to date. It is not really necessary to call this function, since the DataComm object automatically updates itself when the NhlDraw function is called.
The
Return values
The NhlUpdateData C function returns a value of type
NhlErrorTypes, and the NhlFUpdateData
Fortran subroutine returns the error in ierr. The following
table indicates what the return error values mean:
Value | Meaning
--------+-------------------------------------------------
NOERROR | The DataComm object was updated without
| any problem. (It may have already been
| up-to-date.)
--------+-------------------------------------------------
INFO | Recoverable error.
--------+-------------------------------------------------
WARNING | Recoverable error, but there may be more
| problems.
--------+-------------------------------------------------
FATAL | Unable to update the DataComm object.
See also