source: branches/corba/gsdl/src/recpt/nullproto.h@ 1074

Last change on this file since 1074 was 1067, checked in by cs025, 24 years ago

Corba first commit

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