
The Fortran name of this function is NhlFCreate.
This function is used to create an instance of any HLU object. It is provided as an access function to objects that are Base class.
#include <ncarg/hlu/hlu.h> #include <hfile for class being created> NhlErrorTypes NhlCreate( int *ret_id, NhlString name, NhlClass lc, int parent_id, int rlist_id )
external function_for_class_being_created
subroutine NhlFCreate(ret_id, name, lc, parent_id, rlist_id, ierr)
integer ret_id, parent_id, rlist_id, ierr
character*(*) name
external lc
NhlFATAL).
NhlSETRL (or 'setrl' in Fortran).
Type name: NhlTErrorTypes
Definition:
typedef enum _NhlErrType{
NhlFATAL = -4, /* "FATAL" */
NhlWARNING = -3, /* "WARNING" */
NhlINFO = -2, /* "INFO" */
NhlNOERROR = -1 /* "NOERROR" */
} NhlErrorTypes;
The parent_id argument should be set as follows:
The NhlCreate function uses the Resource Database to determine the default values to initialize resources to. The values set in the rlist_id ResList are used to override these default values. If defaults cannot be determined from the ResList, or from the resource database, then internal hard-coded defaults will be used.
The SetValues functions can be used to change the resource values of an object after it has been created.
Value | Meaning --------+------------------------------------------------- NOERROR | Object was created with no problems. --------+------------------------------------------------- INFO | Error was recoverable - usually indicates | that the programmer passed an invalid | resource name or value in the args | argument that was ignored. --------+------------------------------------------------- WARNING | Error was recoverable - usually indicates | that there may be some parts of the object | that are not configured properly, and that | a FATAL error may occur at a later time. --------+------------------------------------------------- FATAL | The function was unable to create the | object.
NG4.1 Home, Index, Examples, Glossary, Feedback, Ref Contents, Ref WhereAmI?