Implement fast access to information about WMO expansion tables D. More...
#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. |
Implement fast access to information about WMO expansion tables D.
dba_err bufrex_dtable_create | ( | const char * | id, |
bufrex_dtable * | table | ||
) |
Create a new bufrex_dtable structure.
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. |
References DBA_RUN_OR_RETURN.
dba_err bufrex_dtable_query | ( | bufrex_dtable | table, |
dba_varcode | var, | ||
bufrex_opcode * | res | ||
) |
Query the bufrex_dtable.
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) |
References dba_error_notfound, DBA_VAR_F, DBA_VAR_X, and DBA_VAR_Y.