source: main/tags/2.27/gsdl/src/recpt/nullproto.h

Last change on this file was 1649, checked in by sjboddie, 24 years ago

Tidied up collectoraction some more and created an add_collection
function in nullproto that does all the work of setting up a
local collection server

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 3.0 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 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 // this configure will configure each of the collection servers
52 void configure (const text_t &key, const text_tarray &cfgline);
53
54 // this init will init each of the collection servers
55 bool init (ostream &logout);
56
57 text_t get_protocol_name ();
58 void get_collection_list (text_tarray &collist, comerror_t &err,
59 ostream &logout);
60 void has_collection (const text_t &collection, bool &hascollection,
61 comerror_t &err, ostream &logout);
62 void ping (const text_t &collection, bool &wassuccess,
63 comerror_t &err, ostream &logout);
64 void get_collectinfo (const text_t &collection,
65 ColInfoResponse_t &collectinfo,
66 comerror_t &err, ostream &logout);
67 void get_filterinfo (const text_t &collection,
68 InfoFiltersResponse_t &response,
69 comerror_t &err, ostream &logout);
70 void get_filteroptions (const text_t &collection,
71 const InfoFilterOptionsRequest_t &request,
72 InfoFilterOptionsResponse_t &response,
73 comerror_t &err, ostream &logout);
74 void filter (const text_t &collection,
75 FilterRequest_t &request,
76 FilterResponse_t &response,
77 comerror_t &err, ostream &logout);
78
79 void get_document (const text_t &collection,
80 const DocumentRequest_t &request,
81 DocumentResponse_t &response,
82 comerror_t &err, ostream &logout);
83
84};
85
86
87#endif
Note: See TracBrowser for help on using the repository browser.