libdballe
7.6
Main Page
Modules
Namespaces
Data Structures
Files
File List
Globals
dballe
db
db/defs.h
1
/*
2
* dballe/db/defs - Base definitions for dballe DB implementations
3
*
4
* Copyright (C) 2015 ARPA-SIM <urpsim@smr.arpa.emr.it>
5
*
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
*
19
* Author: Enrico Zini <enrico@enricozini.com>
20
*/
21
22
#ifndef DBALLE_DB_DEFS_H
23
#define DBALLE_DB_DEFS_H
24
25
#include <wreport/error.h>
26
31
/* Import the attributes. */
32
#define DBA_IMPORT_ATTRS 1
33
/* Attempt to merge pseudoana extra information into the existing ones. */
34
#define DBA_IMPORT_FULL_PSEUDOANA 2
35
/* Message data will overwrite existing values; otherwise, trying to insert
36
* existing data will cause an error. */
37
#define DBA_IMPORT_OVERWRITE 8
38
40
namespace
dballe
{
41
namespace
db {
42
46
typedef
enum
{
47
V5 = 0,
48
V6 = 1,
49
MEM = 2,
50
MESSAGES = 3,
51
} Format;
52
54
struct
error
:
public
wreport::error {};
55
56
}
57
}
58
#endif
dballe::db::error
Base exception for database errors.
Definition:
db/defs.h:54
dballe
Copyright (C) 2008–2010 ARPA-SIM urpsim@smr.arpa.emr.it
Definition:
cmdline.h:17
Generated by
1.8.9.1