implement very very simple stream sql support

This commit is contained in:
Benjamin Sergeant
2020-07-10 16:07:51 -07:00
parent 26a1e63626
commit ca829a3a98
5 changed files with 86 additions and 12 deletions

View File

@@ -14,11 +14,16 @@ namespace snake
class StreamSql
{
public:
StreamSql(const std::string& sqlFilter);
StreamSql(const std::string& sqlFilter = std::string());
~StreamSql() = default;
bool match(const nlohmann::json& pdu);
bool match(const nlohmann::json& msg);
bool valid() const;
private:
std::string _field;
std::string _operator;
std::string _value;
bool _valid;
};
}