/usr/include/dballe/core/varmatch.h is in libdballe-dev 7.21-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | #ifndef DBA_CORE_VARMATCH_H
#define DBA_CORE_VARMATCH_H
#include <memory>
#include <wreport/var.h>
namespace dballe {
/**
* Match a variable code and value
*/
struct Varmatch
{
wreport::Varcode code;
Varmatch(wreport::Varcode code);
virtual ~Varmatch() {}
virtual bool operator()(const wreport::Var&) const;
/**
* Parse variable matcher from a string in the form
* Bxxyyy{<|<=|=|>=|>}value or value<=Bxxyyy<=value
*/
static std::unique_ptr<Varmatch> parse(const std::string& filter);
};
}
#endif
|