Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
9845b1c9
Commit
9845b1c9
authored
Nov 10, 2009
by
Uwe Schulzweida
Browse files
Docu update
parent
8216fabe
Changes
6
Hide whitespace changes
Inline
Side-by-side
doc/tex/FUNCTIONS
View file @
9845b1c9
...
...
@@ -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
...
...
doc/tex/Modules
View file @
9845b1c9
...
...
@@ -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
...
...
doc/tex/c_ref.tex
View file @
9845b1c9
...
...
@@ -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}
...
...
doc/tex/f_ref.tex
View file @
9845b1c9
...
...
@@ -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}
...
...
src/cdi.h
View file @
9845b1c9
...
...
@@ -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 */
...
...
src/vlist_att.c
View file @
9845b1c9
...
...
@@ -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"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment