source: trunk/gsdl/src/colservr/queryfilter.h@ 308

Last change on this file since 308 was 227, checked in by rjmcnab, 25 years ago

Initial revision.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.3 KB
Line 
1/**********************************************************************
2 *
3 * queryfilter.h --
4 * Copyright (C) 1999 The New Zealand Digital Library Project
5 *
6 * PUT COPYRIGHT NOTICE HERE
7 *
8 * $Id: queryfilter.h 227 1999-04-06 22:22:10Z rjmcnab $
9 *
10 *********************************************************************/
11
12
13#ifndef QUERYFILTER_H
14#define QUERYFILTER_H
15
16
17#include "gsdlconf.h"
18#include "text_t.h"
19#include "comtypes.h"
20#include "filter.h"
21#include "infodbclass.h"
22#include "maptools.h"
23#include "mgsearch.h"
24
25
26class queryfilterclass : public filterclass {
27protected:
28 stringmap indexmap;
29 stringmap subcollectionmap;
30 stringmap languagemap;
31
32 text_t gdbm_filename;
33 gdbmclass *gdbmptr;
34
35 mgsearchclass *mgsearchptr;
36
37public:
38 queryfilterclass ();
39 virtual ~queryfilterclass ();
40
41 // the gdbmptr remains the responsability of the calling code
42 void set_gdbmptr (gdbmclass *thegdbmptr) {gdbmptr=thegdbmptr;}
43
44 // the mgsearchptr remains the responsability of the calling code
45 void set_mgsearchptr (mgsearchclass *themgsearchptr) {mgsearchptr=themgsearchptr;}
46
47 void configure (const text_t &key, const text_tarray &cfgline);
48 bool init (ostream &logout);
49 text_t get_filter_name () {return "QueryFilter";}
50 void filter (const FilterRequest_t &request,
51 FilterResponse_t &response,
52 comerror_t &err, ostream &logout);
53};
54
55
56#endif
Note: See TracBrowser for help on using the repository browser.