dmpserver.cpp
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
42
43
44
/**************************************************************************
* file: dmpserver.cpp
* Author: wanzhongping
* Date: 2021-10-27 15:30:43
* Email: zhongpingw@chinadci.com
* copyright: 广州城市信息研究所有限公司
***************************************************************************/
#include "dmpserver.h"
#include <boost/regex.hpp>
#include <boost/lexical_cast.hpp>
bool DmpServer::accept(const std::string &url)
{
//不区分大小写
boost::regex reg(path(), boost::regex_constants::icase);
if(boost::regex_match(url.c_str(), reg))
{
return true;
}
return false;
}
//子类实现
bool DmpServer::publish(const std::string &serviceName, const std::string &title, unsigned int capability, const DmpProject &project)
{
return false;
}
//子类实现
bool DmpServer::remove(const std::string &name)
{
return false;
}
//子类实现
bool DmpServer::start(const std::string &name)
{
return false;
}
//子类实现
bool DmpServer::stop(const std::string &name)
{
return false;
}