Updated footer comment
[idzebra-moved-to-github.git] / include / d1_absyn.h
1 /* This file is part of the Zebra server.
2    Copyright (C) 1994-2009 Index Data
3
4 Zebra is free software; you can redistribute it and/or modify it under
5 the terms of the GNU General Public License as published by the Free
6 Software Foundation; either version 2, or (at your option) any later
7 version.
8
9 Zebra is distributed in the hope that it will be useful, but WITHOUT ANY
10 WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12 for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17
18 */
19
20 #ifndef D1_ABSYN_H
21 #define D1_ABSYN_H 1
22
23 #define ENHANCED_XELM 1
24 #define OPTIMIZE_MELM 1
25
26 #include <zebra_xpath.h>
27 #include <idzebra/data1.h>
28 #include <dfa.h>
29
30 typedef struct data1_xpelement
31 {
32     char *xpath_expr;
33 #ifdef ENHANCED_XELM 
34     struct xpath_location_step xpath[XPATH_STEP_COUNT];
35     int xpath_len;
36 #endif
37     struct DFA *dfa;  
38     data1_termlist *termlists;
39     struct data1_xpelement *next;
40 #if OPTIMIZE_MELM
41     const char *regexp;
42 #endif
43     int match_state;
44     struct data1_xpelement *match_next;
45 } data1_xpelement;
46
47 struct data1_absyn
48 {
49     char *name;
50     Odr_oid *oid;
51     data1_tagset *tagset;
52     data1_varset *varset;
53     data1_esetname *esetnames;
54     data1_maptab *maptabs;
55     data1_marctab *marc;
56     data1_sub_elements *sub_elements;
57     data1_element *main_elements;
58     struct data1_xpelement *xp_elements; /* pop */
59     struct data1_systag *systags;
60     char *encoding;
61     enum DATA1_XPATH_INDEXING xpath_indexing;
62 };
63
64 #endif
65 /*
66  * Local variables:
67  * c-basic-offset: 4
68  * c-file-style: "Stroustrup"
69  * indent-tabs-mode: nil
70  * End:
71  * vim: shiftwidth=4 tabstop=8 expandtab
72  */
73