Use Odr_oid for OIDs. Require YAZ 3.0.2 or later.
[idzebra-moved-to-github.git] / include / d1_absyn.h
1 /* $Id: d1_absyn.h,v 1.13 2007-05-08 12:50:03 adam Exp $
2    Copyright (C) 1995-2007
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     Odr_oid *oid;
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     enum DATA1_XPATH_INDEXING xpath_indexing;
65 };
66
67 #endif
68 /*
69  * Local variables:
70  * c-basic-offset: 4
71  * indent-tabs-mode: nil
72  * End:
73  * vim: shiftwidth=4 tabstop=8 expandtab
74  */
75