summaryrefslogtreecommitdiffabout
path: root/include/kingate/plaincgi.h
blob: 745839e84f04f13461ce9ed95518ad5371109d3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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:
 */