source: branches/z3950-branch/gsdl/src/recpt/z3950proto.h@ 1191

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

Checkpoint: z39.50 collections can now connect and query (and show query
results). Todo: get individual documents, and get working under fast-cgi.

  • Property svn:keywords set to Author Date Id Revision
File size: 1.9 KB
Line 
1
2#ifndef Z3950PROTO_H
3#define Z3050PROTO_H
4
5#include "recptproto.h"
6#include "z3950server.h"
7
8class z3950proto : public recptproto {
9protected:
10 int zserver_count;
11 z3950_server_array zservers;
12public:
13 z3950proto();
14 virtual ~z3950proto();
15
16 int getServerCount() { return zserver_count;}
17 /*
18 void add_collectserver (collectserver *thecserver)
19 {cservers.addcollectserver(thecserver);}
20 */
21
22 void add_server(z3950_server& zserver);
23
24 void read_config_file(const text_t &filename);
25
26 void configure (const text_t &key, const text_tarray &cfgline);
27
28 bool init (ostream &logout);
29
30 text_t get_protocol_name () {return "z3950proto";}
31
32 void get_collection_list (text_tarray &collist, comerror_t &err,
33 ostream &logout);
34
35 void has_collection (const text_t &collection, bool &hascollection,
36 comerror_t &err, ostream &logout);
37
38 void ping (const text_t &collection, bool &wassuccess,
39 comerror_t &err, ostream &logout);
40
41 void get_collectinfo (const text_t &collection,
42 ColInfoResponse_t &collectinfo,
43 comerror_t &err, ostream &logout);
44
45 void get_filterinfo (const text_t &collection,
46 InfoFiltersResponse_t &response,
47 comerror_t &err, ostream &logout);
48
49 /* void get_info (const text_t &collection, const text_tset &metadata,
50 FilterResponse_t &response, ostream &logout);
51 */
52
53 void get_filteroptions (const text_t &collection,
54 const InfoFilterOptionsRequest_t &request,
55 InfoFilterOptionsResponse_t &response,
56 comerror_t &err, ostream &logout);
57
58 void filter (const text_t &collection,
59 FilterRequest_t &request,
60 FilterResponse_t &response,
61 comerror_t &err, ostream &logout);
62
63 void get_document (const text_t &collection,
64 const DocumentRequest_t &request,
65 DocumentResponse_t &response,
66 comerror_t &err, ostream &logout);
67
68};
69
70#endif
Note: See TracBrowser for help on using the repository browser.