summaryrefslogtreecommitdiffabout
path: root/include
authorMichael Krelin <hacker@klever.net>2005-02-13 14:02:29 (UTC)
committer Michael Krelin <hacker@klever.net>2005-02-13 14:02:29 (UTC)
commit4fa4a0071ef9a04c02f8934b2e1d3b7628a65c80 (patch) (unidiff)
tree47f2e6866ab812985ae9e6adbcea8bb785fa0403 /include
parentff4b919683537625f693eedf53006364d0f8444d (diff)
downloadkingate-4fa4a0071ef9a04c02f8934b2e1d3b7628a65c80.zip
kingate-4fa4a0071ef9a04c02f8934b2e1d3b7628a65c80.tar.gz
kingate-4fa4a0071ef9a04c02f8934b2e1d3b7628a65c80.tar.bz2
1. Support for 'plain' CGI
2. Made fastcgi support optional 3. bumped version to 0.0.1 4. doxygen documentation target 'dox' is not built for 'all' now
Diffstat (limited to 'include') (more/less context) (ignore whitespace changes)
-rw-r--r--include/Makefile.am3
-rw-r--r--include/kingate/plaincgi.h44
2 files changed, 46 insertions, 1 deletions
diff --git a/include/Makefile.am b/include/Makefile.am
index c1ec36e..e0b778b 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -1,6 +1,7 @@
1nobase_include_HEADERS = \ 1nobase_include_HEADERS = \
2 kingate/cgi_gateway.h \ 2 kingate/cgi_gateway.h \
3 kingate/cgi_interface.h \ 3 kingate/cgi_interface.h \
4 kingate/fastcgi.h \ 4 kingate/fastcgi.h \
5 kingate/exception.h \ 5 kingate/exception.h \
6 kingate/util.h 6 kingate/util.h \
7 kingate/plaincgi.h
diff --git a/include/kingate/plaincgi.h b/include/kingate/plaincgi.h
new file mode 100644
index 0000000..745839e
--- a/dev/null
+++ b/include/kingate/plaincgi.h
@@ -0,0 +1,44 @@
1#ifndef __KINGATE_PLAINCGI_H
2#define __KINGATE_PLAINCGI_H
3
4#include <iostream>
5#include "kingate/cgi_interface.h"
6
7/**
8 * @file
9 * @brief the "plain" cgi specific implementation.
10 */
11
12namespace kingate {
13
14 /**
15 * The implementation of the interface to the regular CGI.
16 */
17 class plaincgi_interface : public cgi_interface {
18 public:
19
20 /**
21 */
22 plaincgi_interface();
23 virtual ~plaincgi_interface();
24
25 /**
26 * @overload cgi_interface::in()
27 */
28 istream& in() { return cin; }
29 /**
30 * @overload cgi_interface::out()
31 */
32 ostream& out() { return cout; }
33 /**
34 * @overload cgi_interface::out()
35 */
36 ostream& err() { return cerr; }
37 };
38
39}
40
41#endif /* __KINGATE_PLAINCGI_H */
42/*
43 * vim:set ft=cpp:
44 */