mumsi/IncomingConnectionValidator.hpp
Matthias Larisch b6de7842b8 Use boost::regex instead of std::regex
std::regex support is not yet available for older GCC versions.
As boost is used anyway, use also the regex component.
2015-11-23 20:09:32 +01:00

22 lines
472 B
C++

#pragma once
#include <boost/noncopyable.hpp>
#include <log4cpp/Category.hh>
#include <string>
#include <boost/regex.hpp>
namespace sip {
class IncomingConnectionValidator : boost::noncopyable {
public:
IncomingConnectionValidator(std::string validUriExpression);
bool validateUri(std::string uri);
private:
log4cpp::Category &logger;
std::string validUriExpression;
std::vector<boost::regex> uriRegexVec;
};
}