Defines | Functions

import.h File Reference

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

#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, const char *repmemo, int flags)
 Import a dba_msg message into the Dballe database.
dba_err dba_import_msgs (dba_db db, dba_msgs msgs, const char *repmemo, int flags)
 Import dba_msgs messages into the Dballe database.

Detailed Description

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


Function Documentation

dba_err dba_import_msg ( dba_db  db,
dba_msg  msg,
const char *  repmemo,
int  flags 
)
dba_err dba_import_msgs ( dba_db  db,
dba_msgs  msgs,
const char *  repmemo,
int  flags 
)

Import dba_msgs messages into the Dballe database.

Parameters:
dbThe DBALLE database to write the data into
msgsThe dba_msgs containing the data to import
repmemoReport mnemonic to which imported data belong. If NULL is passed, then it will be chosen automatically based on the message type.
flagsCustomise 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.