source: branches/z3950-branch/gsdl/src/recpt/nullproto.h@ 1342

Last change on this file since 1342 was 1342, checked in by johnmcp, 24 years ago

Relatively stable z39.50 implementation now, merged with the mgpp source.
(Still needs a decent interface and query language though...)

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.8 KB
Line 
1/**********************************************************************
2 *
3 * nullproto.h --
4 * Copyright (C) 1999 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
27#ifndef NULLPROTO_H
28#define NULLPROTO_H
29
30#include "gsdlconf.h"
31#include "collectserver.h"
32#include "recptproto.h"
33
34
35class nullproto : public recptproto {
36protected:
37 collectservermapclass cservers;
38public:
39 virtual ~nullproto() {}
40
41 // add_collectserver should be called for each collection server
42 // before any configuration is done
43 void add_collectserver (collectserver *thecserver)
44 {cservers.addcollectserver(thecserver);}
45
46 // this configure will configure each of the collection servers
47 void configure (const text_t &key, const text_tarray &cfgline);
48
49 // this init will init each of the collection servers
50 bool init (ostream &logout);
51
52 text_t get_protocol_name ();
53 void get_collection_list (text_tarray &collist, comerror_t &err,
54 ostream &logout);
55 void has_collection (const text_t &collection, bool &hascollection,
56 comerror_t &err, ostream &logout);
57 void ping (const text_t &collection, bool &wassuccess,
58 comerror_t &err, ostream &logout);
59 void get_collectinfo (const text_t &collection,
60 ColInfoResponse_t &collectinfo,
61 comerror_t &err, ostream &logout);
62 void get_filterinfo (const text_t &collection,
63 InfoFiltersResponse_t &response,
64 comerror_t &err, ostream &logout);
65 void get_filteroptions (const text_t &collection,
66 const InfoFilterOptionsRequest_t &request,
67 InfoFilterOptionsResponse_t &response,
68 comerror_t &err, ostream &logout);
69 void filter (const text_t &collection,
70 FilterRequest_t &request,
71 FilterResponse_t &response,
72 comerror_t &err, ostream &logout);
73
74 void get_document (const text_t &collection,
75 const DocumentRequest_t &request,
76 DocumentResponse_t &response,
77 comerror_t &err, ostream &logout);
78
79};
80
81
82#endif
Note: See TracBrowser for help on using the repository browser.