dmpservice.h
1.1 KB
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
/**************************************************************************
* file: dmpservice.h
* Author: wanzhongping
* Date: 2021-10-26 11:47:23
* Email: zhongpingw@chinadci.com
* copyright: 广州城市信息研究所有限公司
***************************************************************************/
#ifndef __dmpservice_h__
#define __dmpservice_h__
#include "dmap_server.h"
#include <string>
#include <map>
#include "dmpservercontext.h"
#include "dmpserverrequest.h"
#include "dmpserverproject.h"
typedef enum
{
WMTS = 1,
WMS = 2,
WFS = 4,
WPS = 8,
TMS = 16
} DmpServiceType;
class SERVER_EXPORT DmpService
{
public:
virtual ~DmpService() = default;
virtual std::string name() const = 0;
virtual std::string version() const = 0;
virtual std::string description() const = 0;
virtual bool allowMethod(DmpServerRequest::Method) const { return true; }
virtual void executeRequest(const DmpServerContext &context) = 0;
};
#endif // __dmpservice_h__