libwreport 3.38
associated_fields.h
1#ifndef WREPORT_BULLETIN_ASSOCIATED_FIELDS_H
2#define WREPORT_BULLETIN_ASSOCIATED_FIELDS_H
3
4#include <memory>
5
6namespace wreport {
7class Var;
8struct Vartable;
9
10namespace bulletin {
11
12struct AssociatedField
13{
16
23
28 unsigned bit_count;
29
31 unsigned significance;
32
33
34 AssociatedField(const Vartable& btable);
35 ~AssociatedField();
36
44 std::unique_ptr<Var> make_attribute(unsigned value) const;
45
50 const Var* get_attribute(const Var& var) const;
51};
52
53}
54}
55#endif
A physical variable.
Definition var.h:25
Holds a variable information table.
Definition vartable.h:31
The bulletin namespace contains bulletin implementation details, internals and utility functions.
Definition input.h:13
String functions.
Definition benchmark.h:13
std::unique_ptr< Var > make_attribute(unsigned value) const
Create a Var that can be used as an attribute for the currently defined associated field and the give...
unsigned bit_count
Number of extra bits inserted by the current C04yyy modifier (0 for no C04yyy operator in use)
Definition associated_fields.h:28
unsigned significance
Significance of C04yyy field according to code table B31021.
Definition associated_fields.h:31
bool skip_missing
If true, fields with a missing values will be returned as 0.
Definition associated_fields.h:22
const Var * get_attribute(const Var &var) const
Get the attribute of var corresponding to this associated field significance.
const Vartable & btable
B table used to generate associated field attributes.
Definition associated_fields.h:15