source: subversion/applications/utils/tirex/backend-mapnik/requesthandler.h @ 29902

Last change on this file since 29902 was 21122, checked in by jochen, 10 years ago

great cleanup and reorganisation of debian packages

File size: 855 bytes
Line 
1/*
2 * Tirex Tile Rendering System
3 *
4 * Mapnik rendering backend
5 *
6 * Originally written by Jochen Topf & Frederik Ramm.
7 *
8 */
9
10/**
11 * RequestHandler
12 *
13 * Superclass for classes that handle network requests.
14 */
15
16#ifndef requesthandler_included
17#define requesthandler_included
18
19#include <string>
20#include <vector>
21
22#include "networkrequest.h"
23#include "networkresponse.h"
24#include "debuggable.h"
25#include "statusreceiver.h"
26
27class RequestHandler : public Debuggable
28{
29    private:
30
31    StatusReceiver *mpStatusReceiver;
32
33    protected:
34
35    void updateStatus(const char *fmt, ...) const;
36
37    public:
38
39    RequestHandler();
40    void setStatusReceiver(StatusReceiver *sr) { mpStatusReceiver = sr; }
41    virtual const std::string getRequestType() const = 0;
42    virtual const NetworkResponse *handleRequest(const NetworkRequest *request) = 0;
43};
44
45#endif
Note: See TracBrowser for help on using the repository browser.