source: trunk/gsdl/src/colservr/mggdbmsource.h@ 249

Last change on this file since 249 was 249, checked in by sjboddie, 25 years ago

lots of stuff to do with getting documentaction working

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
Line 
1/**********************************************************************
2 *
3 * mggdbmsource.h --
4 * Copyright (C) 1999 The New Zealand Digital Library Project
5 *
6 * PUT COPYRIGHT NOTICE HERE
7 *
8 * $Id: mggdbmsource.h 249 1999-04-30 02:00:48Z sjboddie $
9 *
10 *********************************************************************/
11
12
13#ifndef MGGDBMSOURCE_H
14#define MGGDBMSOURCE_H
15
16#include "gsdlconf.h"
17#include "text_t.h"
18#include "comtypes.h"
19#include "infodbclass.h"
20#include "maptools.h"
21#include "mgsearch.h"
22#include "source.h"
23
24
25class mggdbmsourceclass : public sourceclass {
26protected:
27 text_t gsdlhome;
28 text_t collection;
29 text_t collectdir;
30
31 text_t parentOID;
32 infodbclass parentinfo;
33 text_tarray parentcontents;
34
35 text_t gdbm_filename;
36 gdbmclass *gdbmptr;
37
38 mgsearchclass *mgsearchptr;
39
40public:
41 mggdbmsourceclass ();
42 virtual ~mggdbmsourceclass ();
43
44 // the gdbmptr remains the responsability of the calling code
45 void set_gdbmptr (gdbmclass *thegdbmptr) {gdbmptr=thegdbmptr;}
46
47 // the mgsearchptr remains the responsability of the calling code
48 void set_mgsearchptr (mgsearchclass *themgsearchptr) {mgsearchptr=themgsearchptr;}
49
50 void configure (const text_t &key, const text_tarray &cfgline);
51 bool init (ostream &logout);
52 bool translate_OID (const text_t &OIDin, text_t &OIDout,
53 comerror_t &err, ostream &logout);
54 bool get_metadata (const text_t &requestParams, const text_t &refParams,
55 const text_tarray &fields, const text_t &OID,
56 MetadataInfo_tarray &metadata,
57 comerror_t &err, ostream &logout);
58};
59
60
61
62#endif
Note: See TracBrowser for help on using the repository browser.