libdballe  6.8
modifiers.h
1 /*
2  * dballe/db/modifiers - Parse query=* modifiers
3  *
4  * Copyright (C) 2007--2013 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 DBA_DB_MODIFIERS_H
23 #define DBA_DB_MODIFIERS_H
24 
30 #define DBA_DB_MODIFIER_BEST (1 << 0)
31 
34 #define DBA_DB_MODIFIER_BIGANA (1 << 1)
35 
36 #define DBA_DB_MODIFIER_DISTINCT (1 << 2)
37 
38 #define DBA_DB_MODIFIER_ANAEXTRA (1 << 3)
39 
40 #define DBA_DB_MODIFIER_NOANAEXTRA (1 << 4)
41 
42 #define DBA_DB_MODIFIER_UNSORTED (1 << 5)
43 
47 #define DBA_DB_MODIFIER_STREAM (1 << 6)
48 
49 #define DBA_DB_MODIFIER_SORT_FOR_EXPORT (1 << 7)
50 
51 namespace dballe {
52 struct Record;
53 
54 namespace db {
55 
60 unsigned parse_modifiers(const Record& rec);
61 
62 }
63 }
64 
65 #endif
Definition: cmdline.h:34