libdballe 9.6
varmatch.h
1#ifndef DBA_CORE_VARMATCH_H
2#define DBA_CORE_VARMATCH_H
3
4#include <memory>
5#include <wreport/var.h>
6
7namespace dballe {
8
13{
15
17 virtual ~Varmatch() {}
18
19 virtual bool operator()(const wreport::Var&) const;
20
25 static std::unique_ptr<Varmatch> parse(const std::string& filter);
26};
27
28}
29
30#endif
uint16_t Varcode
Match a variable code and value.
Definition: varmatch.h:13
static std::unique_ptr< Varmatch > parse(const std::string &filter)
Parse variable matcher from a string in the form Bxxyyy{<|<=|=|>=|>}value or value<=Bxxyyy<=value.