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