source: trunk/gsdl/src/recpt/documentaction.h@ 420

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

-added collectinfo argument to some functions
-caught up with changes to browsetools (allowing nested classifications)
-added showtoppage format option

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 KB
Line 
1/**********************************************************************
2 *
3 * documentaction.h --
4 * Copyright (C) 1999 The New Zealand Digital Library Project
5 *
6 * PUT COPYRIGHT NOTICE HERE
7 *
8 * $Id: documentaction.h 420 1999-07-30 02:18:49Z sjboddie $
9 *
10 *********************************************************************/
11
12
13#ifndef DOCUMENTACTION_H
14#define DOCUMENTACTION_H
15
16#include "action.h"
17#include "gsdlconf.h"
18
19class documentaction : public action {
20
21protected:
22 virtual void output_document (const text_t &OID, cgiargsclass &args,
23 recptproto *collectproto, displayclass &disp,
24 outconvertclass &outconvert, ostream &textout,
25 ostream &logout);
26
27 void highlighttext(text_t &text, TermInfo_tarray &terms, displayclass &disp,
28 outconvertclass &outconvert, ostream &textout, ostream &logout);
29
30public:
31 documentaction ();
32 virtual ~documentaction ();
33
34 bool init (ostream &logout);
35
36 text_t get_action_name () {return "d";}
37
38 bool check_cgiargs (cgiargsinfoclass &argsinfo, cgiargsclass &args,
39 ostream &logout);
40
41 void get_cgihead_info (cgiargsclass &args, response_t &response,
42 text_t &response_data, ostream &logout);
43
44 void define_external_macros (const ColInfoResponse_t &collectinfo, displayclass &disp,
45 cgiargsclass &args, recptproto *collectproto,
46 ostream &logout);
47
48 void define_internal_macros (const ColInfoResponse_t &collectinfo, displayclass &disp,
49 cgiargsclass &args, recptproto *collectproto,
50 ostream &logout);
51
52 bool do_action (cgiargsclass &args, const ColInfoResponse_t &collectinfo,
53 recptproto *collectproto, displayclass &disp,
54 outconvertclass &outconvert, ostream &textout,
55 ostream &logout);
56
57};
58
59
60
61#endif
62
63
Note: See TracBrowser for help on using the repository browser.