summaryrefslogtreecommitdiffabout
path: root/include
Side-by-side diff
Diffstat (limited to 'include') (more/less context) (show 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 @@
nobase_include_HEADERS = \
kingate/cgi_gateway.h \
kingate/cgi_interface.h \
kingate/fastcgi.h \
kingate/exception.h \
- kingate/util.h
+ kingate/util.h \
+ 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 @@
+#ifndef __KINGATE_PLAINCGI_H
+#define __KINGATE_PLAINCGI_H
+
+#include <iostream>
+#include "kingate/cgi_interface.h"
+
+/**
+ * @file
+ * @brief the "plain" cgi specific implementation.
+ */
+
+namespace kingate {
+
+ /**
+ * The implementation of the interface to the regular CGI.
+ */
+ class plaincgi_interface : public cgi_interface {
+ public:
+
+ /**
+ */
+ plaincgi_interface();
+ virtual ~plaincgi_interface();
+
+ /**
+ * @overload cgi_interface::in()
+ */
+ istream& in() { return cin; }
+ /**
+ * @overload cgi_interface::out()
+ */
+ ostream& out() { return cout; }
+ /**
+ * @overload cgi_interface::out()
+ */
+ ostream& err() { return cerr; }
+ };
+
+}
+
+#endif /* __KINGATE_PLAINCGI_H */
+/*
+ * vim:set ft=cpp:
+ */