source: trunk/gsdl/src/colservr/z3950parser.h@ 11253

Last change on this file since 11253 was 10436, checked in by kjdon, 19 years ago

moved the yaz headers to the top or teh include list to avoid namespace conflicts

  • Property svn:keywords set to Author Date Id Revision
File size: 2.4 KB
Line 
1/**********************************************************************
2 *
3 * z3950parser.h -- convert Z39.50's RPN query syntax into Greenstone
4 * Copyright (C) 2000 The New Zealand Digital Library Project
5 *
6 * A component of the Greenstone digital library software
7 * from the New Zealand Digital Library Project at the
8 * University of Waikato, New Zealand.
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 *
24 *********************************************************************/
25
26#ifndef Z3950PARSER_H
27#define Z3950PARSER_H
28
29// YAZ headers
30extern "C" {
31#include <yaz/backend.h>
32#include <yaz/log.h>
33#ifdef ASN_COMPILED
34#include <yaz/ill.h>
35#endif
36}
37
38#include <string>
39#include <list>
40
41#include <stdio.h>
42#include <stdlib.h>
43#include <ctype.h>
44#include <time.h>
45
46// Greenstone headers
47#include "fileutil.h"
48#include "comtypes.h"
49#include "recptproto.h"
50#include "nullproto.h"
51#include "z3950_to_gsdl.h"
52
53extern text_t gsdlhome;
54extern list<FilterResponse_t> Response_tlist;
55extern list<text_t> Response_tlist_colnames;
56extern list<int> Response_tlist_sizes;
57extern z3950Server *Server;
58extern collectset *Cservers;
59extern nullproto *Protocol;
60extern map<text_t, gsdlCollection> Collection_map;
61extern map<text_t, text_t> Resultsets;
62
63void Z_AttributeList_parse(bend_search_rr *rr, Z_AttributeList *Z, text_t &GSQuery);
64
65void Z_Term_parse(bend_search_rr *rr, Z_Term *Z, text_t &GSQuery);
66
67void Z_ProximityOperator_parse(bend_search_rr *rr, Z_ProximityOperator *Z, text_t &GSQuery);
68
69void Z_Operator_parse(bend_search_rr *rr, Z_Operator *Z, text_t &GSQuery);
70
71void Z_Operand_parse(bend_search_rr *rr, Z_Operand *Z, text_t &GSQuery);
72
73void Z_RPNStructure_parse(bend_search_rr *rr, Z_RPNStructure *Z, text_t &GSQuery);
74
75text_t ZQueryToGSQuery(bend_search_rr *rr);
76
77#endif
Note: See TracBrowser for help on using the repository browser.