source: trunk/gsdl/src/recpt/nullproto.h@ 533

Last change on this file since 533 was 533, checked in by sjboddie, 25 years ago

added GPL notice

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