libdballe  9.11
varmatch.h
1 #ifndef DBA_CORE_VARMATCH_H
2 #define DBA_CORE_VARMATCH_H
3 
4 #include <memory>
5 #include <wreport/var.h>
6 
7 namespace dballe {
8 
12 struct Varmatch
13 {
14  wreport::Varcode code;
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
Match a variable code and value.
Definition: varmatch.h:12
Definition: cmdline.h:18
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.
uint16_t Varcode