NhlRLSet


NhlRLSet, NhlRLSetInteger, NhlRLSetFloat, NhlRLSetString
The Fortran names of these functions are NhlFRLSetInteger,
NhlFRLSetFloat, NhlFRLSetString. There
is no Fortran binding for NhlRLSet.
Used to add the given name and value to the ResList.
C synopsis
#include <ncarg/hlu/hlu.h>
NhlErrorTypes NhlRLSet(
int list_id,
NhlString resname,
NhlString type,
<AnyType> value
)
NhlErrorTypes NhlRLSetInteger(
int list_id,
NhlString resname,
int value
)
NhlErrorTypes NhlRLSetFloat(
int list_id,
NhlString resname,
float value
)
NhlErrorTypes NhlRLSetString(
int list_id,
NhlString resname,
NhlString value
)
Fortran synopsis
subroutine NhlFRLSetInteger(list_id, resname, ival, ierr)
integer list_id, ival, ierr
character*(*) resname
subroutine NhlFRLSetFloat(list_id, resname, rval, ierr)
integer list_id, ierr
real rval
character*(*) resname
subroutine NhlFRLSetString(list_id, resname, sval, ierr)
integer list_id, ierr
character*(*) resname, sval
Arguments
- list_id
- Id of the ResList to add the name/value pair to.
- resname
- Specifies the resource name to apply the given value to when
the list is applied to an HLU object.
- type (C only)
- Specifies the type for value.
- value (C only)
- Specifies the value that will be applied to the corresponding
resname when the list is applied to an HLU object.
-
ival (Fortran only)
-
Specifies the integer value that will be applied to the corresponding
resname resource when the list is applied to an HLU object.
-
rval (Fortran only)
-
Specifies the real value that will be applied to the corresponding
resname resource when the list is applied to an HLU object.
-
sval (Fortran only)
-
Specifies the string that will be applied to the corresponding
resname resource when the list is applied to an HLU object.
-
ierr (Fortran only)
-
Error code.
Description
These functions can only be used on a NhlSETRL
ResList. They are used to add name/value pairs to the
ResList that will be passed to the
NhlCreate or
NhlSetValues functions.
Return values
The C functions return a value of type NhlErrorTypes, and the
Fortran subroutines return the error value in ierr. If they
are unable to add the name/val_addr pair to the list, they
will return NhlFATAL; otherwise they will return
NhlNOERROR.
See also
Copyright
Copyright 1987,1988,1989,1991,1993,1994,1995
University Corporation for Atmospheric Research
All Rights Reserved
Reference Manual Control Panel
NG4 Home, Index, Examples, Glossary, Feedback, Ref Contents, Ref WhereAmI?
$Revision: 1.9 $ $Date: 1995/07/26 23:28:30 $