IDZEBRA  2.2.7
zebra_xpath.h
Go to the documentation of this file.
1 /* This file is part of the Zebra server.
2  Copyright (C) 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 ZEBRA_XPATH_H
21 #define ZEBRA_XPATH_H
22 
23 #include <yaz/nmem.h>
24 
25 #define XPATH_STEP_COUNT 10
27  int which;
28  union {
29 #define XPATH_PREDICATE_RELATION 1
30  struct {
31  char *name;
32  char *op;
33  char *value;
35 #define XPATH_PREDICATE_BOOLEAN 2
36  struct {
37  const char *op;
41  } u;
42 };
43 
45  char *part;
47 };
48 
49 int zebra_parse_xpath_str(const char *xpath_string,
50  struct xpath_location_step *xpath,
51  int max, NMEM mem);
52 
53 void dump_xp_steps (struct xpath_location_step *xpath, int no);
54 
55 
56 #endif
57 /*
58  * Local variables:
59  * c-basic-offset: 4
60  * c-file-style: "Stroustrup"
61  * indent-tabs-mode: nil
62  * End:
63  * vim: shiftwidth=4 tabstop=8 expandtab
64  */
65 
struct xpath_predicate * predicate
Definition: zebra_xpath.h:46
struct xpath_predicate * right
Definition: zebra_xpath.h:39
union xpath_predicate::@8 u
const char * op
Definition: zebra_xpath.h:37
struct xpath_predicate::@8::@9 relation
struct xpath_predicate::@8::@10 boolean
struct xpath_predicate * left
Definition: zebra_xpath.h:38
void dump_xp_steps(struct xpath_location_step *xpath, int no)
Definition: xpath.c:235
int zebra_parse_xpath_str(const char *xpath_string, struct xpath_location_step *xpath, int max, NMEM mem)
Definition: xpath.c:162