libdballe 4.0.18
|
Import functions from a dba_msg to the DB-ALLe database. More...
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. |
Import functions from a dba_msg to the DB-ALLe database.
Import a dba_msg message into the Dballe database.
db | The DBALLE database to write the data into |
msg | The dba_msg containing the data to import |
repmemo | Report mnemonic to which imported data belong. If NULL 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. |
References _dba_db::attr, _dba_db::context, _dba_msg::data, _dba_msg_context::data, _dba_db::data, _dba_msg::data_count, _dba_msg_context::data_count, _dba_db_context::date, dba_error_consistency, dba_error_notfound, DBA_MSG_DAY, DBA_MSG_HOUR, DBA_MSG_IDENT, DBA_MSG_LATITUDE, DBA_MSG_LONGITUDE, DBA_MSG_MINUTE, DBA_MSG_MONTH, DBA_MSG_YEAR, DBA_RUN_OR_GOTO, DBA_RUN_OR_RETURN, DBA_VAR, DBA_VAR_X, DBA_VAR_Y, _dba_db_context::id_ana, _dba_db_attr::id_context, _dba_db_data::id_context, _dba_db_context::id_report, _dba_db_attr::id_var, _dba_db_pseudoana::ident, _dba_db_pseudoana::ident_ind, _dba_db_context::l1, _dba_msg_context::l1, _dba_db_context::l2, _dba_msg_context::l2, _dba_db_pseudoana::lat, _dba_db_pseudoana::lon, _dba_db_context::ltype1, _dba_msg_context::ltype1, _dba_db_context::ltype2, _dba_msg_context::ltype2, _dba_db_context::p1, _dba_msg_context::p1, _dba_db_context::p2, _dba_msg_context::p2, _dba_db_context::pind, _dba_msg_context::pind, _dba_db::pseudoana, and _dba_msg::type.
Import dba_msgs messages into the Dballe database.
db | The DBALLE database to write the data into |
msgs | The dba_msgs containing the data to import |
repmemo | Report mnemonic to which imported data belong. If NULL 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. |
References DBA_RUN_OR_RETURN, _dba_msgs::len, and _dba_msgs::msgs.