import.h File Reference


Detailed Description

Import functions from a dba_msg to the DB-ALLe database.

#include <dballe/db/db.h>
#include <dballe/msg/msgs.h>

Go to the source code of this file.

Defines

#define DBA_IMPORT_ATTRS   1
#define DBA_IMPORT_FULL_PSEUDOANA   2
#define DBA_IMPORT_DATETIME_ATTRS   4
#define DBA_IMPORT_OVERWRITE   8
#define DBA_IMPORT_NO_TRANSACTIONS   16

Functions

dba_err dba_import_msg (dba_db db, dba_msg msg, int repcod, int flags)
 Import a dba_msg message into the Dballe database.
dba_err dba_import_msgs (dba_db db, dba_msgs msgs, int repcod, int flags)
 Import dba_msgs messages into the Dballe database.


Function Documentation

dba_err dba_import_msg ( dba_db  db,
dba_msg  msg,
int  repcod,
int  flags 
)

dba_err dba_import_msgs ( dba_db  db,
dba_msgs  msgs,
int  repcod,
int  flags 
)

Import dba_msgs messages into the Dballe database.

Parameters:
db The DBALLE database to write the data into
msgs The dba_msgs containing the data to import
repcod Report code to which imported data belong. If -1 is passed, then it will be chosen automatically based on the message type.
flags Customise different aspects of the import process. It is a bitmask of the various DBA_IMPORT_* macros.
Returns:
The error indicator for the function

References DBA_RUN_OR_RETURN, _dba_msgs::len, and _dba_msgs::msgs.


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