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

Last change on this file since 1739 was 1739, checked in by sjboddie, 23 years ago

A few changes to get multi-volume cd-roms working again

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 3.4 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#include "receptionist.h"
34
35class nullproto : public recptproto {
36protected:
37 collectservermapclass cservers;
38public:
39 virtual ~nullproto();
40
41 // add_collection sets up the collectionserver and calls
42 // add_collectserver
43 virtual void add_collection (const text_t &collection, void *recpt,
44 const text_t &gsdlhome, const text_t &gdbmhome);
45
46 // add_collectserver should be called for each collection server
47 // before any configuration is done
48 void add_collectserver (collectserver *thecserver)
49 {cservers.addcollectserver(thecserver);}
50
51 // remove_collection deletes the collection server of collection.
52 // This only needs to be called if a collectionserver is to be
53 // removed while the library is running as the destructor function
54 // cleans up all collectservers when the program exits.
55 void remove_collection (const text_t &collection, ostream &logout);
56
57 // this configure will configure each of the collection servers
58 void configure (const text_t &key, const text_tarray &cfgline);
59
60 // this init will init each of the collection servers
61 bool init (ostream &logout);
62
63 text_t get_protocol_name ();
64 void get_collection_list (text_tarray &collist, comerror_t &err,
65 ostream &logout);
66 void has_collection (const text_t &collection, bool &hascollection,
67 comerror_t &err, ostream &logout);
68 void ping (const text_t &collection, bool &wassuccess,
69 comerror_t &err, ostream &logout);
70 void get_collectinfo (const text_t &collection,
71 ColInfoResponse_t &collectinfo,
72 comerror_t &err, ostream &logout);
73 void get_filterinfo (const text_t &collection,
74 InfoFiltersResponse_t &response,
75 comerror_t &err, ostream &logout);
76 void get_filteroptions (const text_t &collection,
77 const InfoFilterOptionsRequest_t &request,
78 InfoFilterOptionsResponse_t &response,
79 comerror_t &err, ostream &logout);
80 void filter (const text_t &collection,
81 FilterRequest_t &request,
82 FilterResponse_t &response,
83 comerror_t &err, ostream &logout);
84
85 void get_document (const text_t &collection,
86 const DocumentRequest_t &request,
87 DocumentResponse_t &response,
88 comerror_t &err, ostream &logout);
89
90};
91
92
93#endif
Note: See TracBrowser for help on using the repository browser.