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

Last change on this file since 11553 was 11553, checked in by kjdon, 18 years ago

Latest compile complained about redefinition of funciton yaz_log, defined in a math header. Turns out that yaz log.h #defines logf to yaz_log.
So moved the yaz headers includes to come last in z3950parser.h, and removed them from z3950server.cpp cos that includes z3950parser.h

  • 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
30#include <string>
31#include <list>
32
33#include <stdio.h>
34#include <stdlib.h>
35#include <ctype.h>
36#include <time.h>
37
38// Greenstone headers
39#include "fileutil.h"
40#include "comtypes.h"
41#include "recptproto.h"
42#include "nullproto.h"
43#include "z3950_to_gsdl.h"
44
45// YAZ headers
46extern "C" {
47#include <yaz/backend.h>
48#include <yaz/log.h>
49#ifdef ASN_COMPILED
50#include <yaz/ill.h>
51#endif
52}
53
54extern text_t gsdlhome;
55extern list<FilterResponse_t> Response_tlist;
56extern list<text_t> Response_tlist_colnames;
57extern list<int> Response_tlist_sizes;
58extern z3950Server *Server;
59extern collectset *Cservers;
60extern nullproto *Protocol;
61extern map<text_t, gsdlCollection> Collection_map;
62extern map<text_t, text_t> Resultsets;
63
64void Z_AttributeList_parse(bend_search_rr *rr, Z_AttributeList *Z, text_t &GSQuery);
65
66void Z_Term_parse(bend_search_rr *rr, Z_Term *Z, text_t &GSQuery);
67
68void Z_ProximityOperator_parse(bend_search_rr *rr, Z_ProximityOperator *Z, text_t &GSQuery);
69
70void Z_Operator_parse(bend_search_rr *rr, Z_Operator *Z, text_t &GSQuery);
71
72void Z_Operand_parse(bend_search_rr *rr, Z_Operand *Z, text_t &GSQuery);
73
74void Z_RPNStructure_parse(bend_search_rr *rr, Z_RPNStructure *Z, text_t &GSQuery);
75
76text_t ZQueryToGSQuery(bend_search_rr *rr);
77
78#endif
Note: See TracBrowser for help on using the repository browser.