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 206 1999-03-25 03:06:45Z 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 | public:
|
---|
22 | queryaction ();
|
---|
23 | virtual ~queryaction () {}
|
---|
24 |
|
---|
25 | void configure (const text_t &key, const text_tarray &cfgline);
|
---|
26 | bool init (ostream &logout);
|
---|
27 |
|
---|
28 | text_t get_action_name () {return "q";}
|
---|
29 |
|
---|
30 | bool check_cgiargs (cgiargsclass &args, ostream &logout);
|
---|
31 | void get_cgihead_info (cgiargsclass &args, response_t &response,
|
---|
32 | text_t &response_data, ostream &logout);
|
---|
33 |
|
---|
34 | void define_internal_macros (displayclass &disp, cgiargsclass &args,
|
---|
35 | recptproto *collectproto, ostream &logout);
|
---|
36 | void define_external_macros (displayclass &disp, cgiargsclass &args,
|
---|
37 | recptproto *collectproto, ostream &logout);
|
---|
38 |
|
---|
39 | bool do_action (cgiargsclass &args, recptproto *collectproto,
|
---|
40 | displayclass &disp, outconvertclass &outconvert,
|
---|
41 | ostream &textout, ostream &logout);
|
---|
42 | };
|
---|
43 |
|
---|
44 |
|
---|
45 | #endif
|
---|