Commit 9845b1c9 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Docu update

parent 8216fabe
......@@ -58,6 +58,8 @@ Function catalog:
-------------------------------------------------------------
vlist_att
-------------------------------------------------------------
vlistInqNatts Get number of variable attributes
vlistInqAtt Get information about an attribute
vlistDefAttInt Define an integer attribute
vlistInqAttInt Get the value(s) of an integer attribute
vlistDefAttFlt Define a floating point attribute
......
......@@ -46,6 +46,9 @@ vlistDefVarDatatype vlist_var
vlistInqVarDatatype vlist_var
vlistDefVarMissval vlist_var
vlistInqVarMissval vlist_var
vlistInqNatts vlist_att
vlistInqAtt vlist_att
vlistDelAtt vlist_att
vlistDefAttInt vlist_att
vlistInqAttInt vlist_att
vlistDefAttFlt vlist_att
......
......@@ -660,6 +660,15 @@ Destroy a variable list
Duplicate a variable list
\section*{\tt \htmlref{vlistInqAtt}{vlistInqAtt}}
\begin{verbatim}
int vlistInqAtt(int vlistID, int varID, int attnum, char *name, int *typep, int *lenp);
\end{verbatim}
Get information about an attribute
\section*{\tt \htmlref{vlistInqAttFlt}{vlistInqAttFlt}}
\begin{verbatim}
......@@ -687,6 +696,15 @@ Get the value(s) of an integer attribute
Get the value(s) of a text attribute
\section*{\tt \htmlref{vlistInqNatts}{vlistInqNatts}}
\begin{verbatim}
int vlistInqNatts(int vlistID, int varID, int *nattsp);
\end{verbatim}
Get number of variable attributes
\section*{\tt \htmlref{vlistInqTaxis}{vlistInqTaxis}}
\begin{verbatim}
......
......@@ -669,6 +669,16 @@ Destroy a variable list
Duplicate a variable list
\section*{\tt \htmlref{vlistInqAtt}{vlistInqAtt}}
\begin{verbatim}
INTEGER FUNCTION vlistInqAtt(INTEGER vlistID, INTEGER varID, INTEGER attnum,
CHARACTER*(*) name, INTEGER typep, INTEGER lenp)
\end{verbatim}
Get information about an attribute
\section*{\tt \htmlref{vlistInqAttFlt}{vlistInqAttFlt}}
\begin{verbatim}
......@@ -699,6 +709,15 @@ Get the value(s) of an integer attribute
Get the value(s) of a text attribute
\section*{\tt \htmlref{vlistInqNatts}{vlistInqNatts}}
\begin{verbatim}
INTEGER FUNCTION vlistInqNatts(INTEGER vlistID, INTEGER varID, INTEGER nattsp)
\end{verbatim}
Get number of variable attributes
\section*{\tt \htmlref{vlistInqTaxis}{vlistInqTaxis}}
\begin{verbatim}
......
......@@ -405,10 +405,10 @@ int vlistMergedLevel(int vlistID, int varID, int levelID);
/* VLIST attributes */
/* vlistInqNatts: Get number of variable attributes assigned to this variable */
int vlistInqNatts(int vlistID, int varID, int *nattsp);
/* vlistInqAtt: Get information about an attribute */
int vlistInqAtt(int vlistID, int varID, int attrnum, char *name, int *typep, int *lenp);
int vlistDelAtt(int vlistID, int varID, const char *name);
/* vlistDefAttInt: Define an integer attribute */
......
......@@ -101,6 +101,21 @@ void fill_att(CDI_att *attp, int type, size_t nelems, size_t xsz, const void *xv
}
/*
@Function vlistInqNatts
@Title Get number of variable attributes
@Prototype int vlistInqNatts(int vlistID, int varID, int *nattsp)
@Parameter
@Item vlistID Variable list ID, from a previous call to @fref{vlistCreate}
@Item varID Variable identifier, or CDI_GLOBAL for a global attribute
@Item nattsp Pointer to location for returned number of variable attributes
@Description
The function @func{vlistInqNatts} gets the number of variable attributes assigned to this variable.
@EndFunction
*/
int vlistInqNatts(int vlistID, int varID, int *nattsp)
{
static char func[] = "vlistInqNatts";
......@@ -119,6 +134,24 @@ int vlistInqNatts(int vlistID, int varID, int *nattsp)
}
/*
@Function vlistInqAtt
@Title Get information about an attribute
@Prototype int vlistInqAtt(int vlistID, int varID, int attnum, char *name, int *typep, int *lenp)
@Parameter
@Item vlistID Variable list ID, from a previous call to @fref{vlistCreate}
@Item varID Variable identifier, or CDI_GLOBAL for a global attribute
@Item attnum Attribute number (from 0 to natts-1)
@Item name Pointer to the location for the returned attribute name
@Item typep Pointer to location for returned attribute type
@Item lenp Pointer to location for returned attribute number
@Description
The function @func{vlistInqNatts} gets information about an attribute.
@EndFunction
*/
int vlistInqAtt(int vlistID, int varID, int attnum, char *name, int *typep, int *lenp)
{
static char func[] = "vlistInqAtt";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment