file.h File Reference


Detailed Description

I/O functions to dba_file using dba_msgs structures.

#include <dballe/core/file.h>
#include <dballe/msg/msgs.h>

Go to the source code of this file.

Functions

dba_err dba_file_read_msgs (dba_file file, dba_msgs *msgs, int *found)
 Read and parse a message from the file.
dba_err dba_file_write_msgs (dba_file file, dba_msgs msgs, int cat, int subcat)
 Write a message to the file.


Function Documentation

dba_err dba_file_read_msgs ( dba_file  file,
dba_msgs msgs,
int *  found 
)

Read and parse a message from the file.

Parameters:
file dba_file to read from
Return values:
msgs The resulting dba_msgs
found Will be set to true if a message has been found in the file, else to false.
Returns:
The error indicator for the function. See error.h

dba_err dba_file_write_msgs ( dba_file  file,
dba_msgs  msgs,
int  cat,
int  subcat 
)

Write a message to the file.

Parameters:
file dba_file to write to
msgs The dba_msgs to encode and write.
cat The BUFR of CREX message category to use for encoding (0 for auto detect)
subcat The BUFR of CREX message subcategory to use for encoding (0 for auto detect)
Returns:
The error indicator for the function. See error.h


Generated on Fri Jun 22 14:45:48 2007 for libdballe-db by  doxygen 1.5.2