dtable.h File Reference


Detailed Description

Implement fast access to information about WMO expansion tables D.

#include <dballe/core/vartable.h>
#include <dballe/bufrex/opcode.h>

Go to the source code of this file.

Typedefs

typedef struct _bufrex_dtable * bufrex_dtable
 Opaque structure representing a bufrex_dtable object.

Functions

dba_err bufrex_dtable_create (const char *id, bufrex_dtable *table)
 Create a new bufrex_dtable structure.
dba_err bufrex_dtable_query (bufrex_dtable table, dba_varcode var, bufrex_opcode *res)
 Query the bufrex_dtable.


Function Documentation

dba_err bufrex_dtable_create ( const char *  id,
bufrex_dtable table 
)

Create a new bufrex_dtable structure.

Return values:
table The bufrex_dtable structure that can be used to access the table. It is a pointer to a local shared cache that is guaranteed to live until the end of the program, and it does not need to be deallocated.
Returns:
The error status (See error.h)

References DBA_RUN_OR_RETURN.

dba_err bufrex_dtable_query ( bufrex_dtable  table,
dba_varcode  var,
bufrex_opcode res 
)

Query the bufrex_dtable.

Parameters:
table bufrex_dtable to query
var entry code (i.e. DXXYYY as a dba_varcode DBA_VAR(3, xx, yyy).
res the bufrex_opcode chain that contains the expansion elements (must be deallocated by the caller using bufrex_opcode_delete)
Returns:
The error status (See error.h)

References dba_error_notfound, DBA_VAR_F, DBA_VAR_X, and DBA_VAR_Y.


Generated on Fri Aug 1 15:18:41 2008 for libdballe by  doxygen 1.5.6