Line data Source code
1 : #pragma once
2 :
3 : #include <matchmaker/match_mode.hpp>
4 : #include <wfc/json.hpp>
5 : #include <memory>
6 :
7 : namespace wfc{ namespace jsonrpc{
8 :
9 : struct imatcher;
10 :
11 2 : class matchmaker
12 : {
13 : struct regular;
14 : enum class regtype;
15 : public:
16 : bool reconfigure(int mode, const std::string& jsonconfig, json::json_error& err);
17 : bool match(const char* beg, const char* end, json::json_error& err);
18 : bool match(const std::string& json, json::json_error& err);
19 : private:
20 : std::shared_ptr<imatcher> _matcher;
21 : };
22 :
23 :
24 : }}
|