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)

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)


Generated on Thu Aug 30 14:59:08 2007 for libdballe-db by  doxygen 1.5.3