libdballe
9.6
dballe
core
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
16
Varmatch
(
wreport::Varcode
code);
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
wreport::Var
wreport::Varcode
uint16_t Varcode
dballe::Varmatch
Match a variable code and value.
Definition:
varmatch.h:13
dballe::Varmatch::parse
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.
Generated by
1.9.6