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 |
|
---|
20 | class queryaction : public action {
|
---|
21 |
|
---|
22 | protected:
|
---|
23 | text_t formatstring;
|
---|
24 |
|
---|
25 | void define_query_macros (cgiargsclass &args, displayclass &disp,
|
---|
26 | const FilterResponse_t &response,
|
---|
27 | const text_t "edstring);
|
---|
28 | void set_option_macro (const text_t ¯oname, text_t current_value,
|
---|
29 | const FilterOption_t &option, displayclass &disp);
|
---|
30 |
|
---|
31 |
|
---|
32 | public:
|
---|
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
|
---|