dmpserver.cpp 1.1 KB
/**************************************************************************
* 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;
}