source: trunk/gsdl/src/recpt/queryaction.h@ 357

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

had another crack at the format string code - created a new formattools
module. It can now handle {If} and {Or} statements although there's a
bug preventing nested if's and or's.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
Line 
1/**********************************************************************
2 *
3 * queryaction.h --
4 * Copyright (C) 1999 The New Zealand Digital Library Project
5 *
6 * PUT COPYRIGHT NOTICE HERE
7 *
8 * $Id: queryaction.h 347 1999-07-07 05:49:35Z sjboddie $
9 *
10 *********************************************************************/
11
12
13#ifndef QUERYACTION_H
14#define QUERYACTION_H
15
16#include "gsdlconf.h"
17#include "action.h"
18
19
20class queryaction : public action {
21
22protected:
23 text_t formatstring;
24
25 void define_query_macros (cgiargsclass &args, displayclass &disp,
26 const FilterResponse_t &response,
27 const text_t &quotedstring);
28 void set_option_macro (const text_t &macroname, text_t current_value,
29 const FilterOption_t &option, displayclass &disp);
30
31
32public:
33 queryaction ();
34 virtual ~queryaction () {}
35
36 void configure (const text_t &key, const text_tarray &cfgline);
37 bool init (ostream &logout);
38
39 text_t get_action_name () {return "q";}
40
41 bool check_cgiargs (cgiargsinfoclass &argsinfo, cgiargsclass &args,
42 ostream &logout);
43 void get_cgihead_info (cgiargsclass &args, response_t &response,
44 text_t &response_data, ostream &logout);
45
46 void define_internal_macros (displayclass &disp, cgiargsclass &args,
47 recptproto *collectproto, ostream &logout);
48 void define_external_macros (displayclass &disp, cgiargsclass &args,
49 recptproto *collectproto, ostream &logout);
50
51 bool do_action (cgiargsclass &args, recptproto *collectproto,
52 displayclass &disp, outconvertclass &outconvert,
53 ostream &textout, ostream &logout);
54};
55
56
57#endif
Note: See TracBrowser for help on using the repository browser.