正在显示
1 个修改的文件
包含
37 行增加
和
0 行删除
src/server/dmpserver.h
0 → 100644
1 | +/************************************************************************** | |
2 | +* file: dmapserver.h | |
3 | + | |
4 | +* Author: wanzhongping | |
5 | +* Date: 2020-12-07 14:11:43 | |
6 | +* Email: zhongpingw@chinadci.com | |
7 | +* copyright: 广州城市信息研究所有限公司 | |
8 | +***************************************************************************/ | |
9 | + | |
10 | +#ifndef __dmpserver_h__ | |
11 | +#define __dmpserver_h__ | |
12 | + | |
13 | +#include "dmpconfig.h" | |
14 | +#include "dmap_server.h" | |
15 | +#include "dmpserviceregistry.h" | |
16 | +#include "dmpserverrequest.h" | |
17 | +#include "dmpserverresponse.h" | |
18 | +#include "dmpserverinterfaceimpl.h" | |
19 | + | |
20 | +class SERVER_EXPORT DmpServer | |
21 | +{ | |
22 | +public: | |
23 | + DmpServer(); | |
24 | + static bool Init(); | |
25 | + void HandleRequest(DmpServerRequest &request, DmpServerResponse &response); | |
26 | + | |
27 | +#ifdef HAVE_SERVER_PYTHON_PLUGINS | |
28 | + static void InitPython(); | |
29 | +#endif | |
30 | + | |
31 | +private: | |
32 | + static bool initialized_; | |
33 | + static DmpServerInterfaceImpl *server_interface_; | |
34 | + static DmpServiceRegistry *service_registry_; | |
35 | +}; | |
36 | + | |
37 | +#endif // __dmapserver_h__ | ... | ... |
请
注册
或
登录
后发表评论