summaryrefslogtreecommitdiffabout
path: root/include/sitecing/cgi_component.h
blob: 91df689f24a4ac7a36b03a5eadd0a0ccdb2a6428 (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
45
46
47
48
49
50
51
52
53
54
#ifndef __SITECING_CGI_COMPONENT_H
#define __SITECING_CGI_COMPONENT_H

#include <map>
#include "kingate/cgi_gateway.h"
#include "sitecing/acomponent.h"
#include "sitecing/sitecing_interface_cgi.h"

/**
 * @file
 * @brief The cgi_component class declaration.
 */

namespace sitecing {
    using namespace std;

    /**
     * The CGI-oriented component class.
     */
    class cgi_component : virtual public acomponent {
	public:
	    /**
	     * The interface to site-C-ing core.
	     */
	    sitecing_interface_cgi* __SCIF;
	    /**
	     * The interface to the CGI gateway.
	     */
	    kingate::cgi_gateway* __CGI;

	    cgi_component();
	    virtual ~cgi_component();

	    /**
	     * @overload acomponent::__set_interface()
	     */
	    void __set_interface(sitecing_interface* scif);
	    /**
	     * @overload acomponent::__on_change_interface()
	     */
	    void __on_change_interface(sitecing_interface *o);
	    /**
	     * Invoked on the change of the interface to the CGI.
	     */
	    virtual void __on_change_CGI(kingate::cgi_gateway *o);
	    /**
	     * @overload acomponent::__on_imports()
	     */
	    virtual void __on_imports();
    };

}

#endif /* __SITECING_CGI_COMPONENT_H */