libwreport  3.15
associated_fields.h
1 #ifndef WREPORT_BULLETIN_ASSOCIATED_FIELDS_H
2 #define WREPORT_BULLETIN_ASSOCIATED_FIELDS_H
3 
4 #include <memory>
5 
6 namespace wreport {
7 struct Var;
8 struct Vartable;
9 
10 namespace bulletin {
11 
13 {
15  const Vartable& btable;
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
unsigned significance
Significance of C04yyy field according to code table B31021.
Definition: associated_fields.h:31
A physical variable.
Definition: var.h:23
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
const Vartable & btable
B table used to generate associated field attributes.
Definition: associated_fields.h:15
bool skip_missing
If true, fields with a missing values will be returned as 0.
Definition: associated_fields.h:22
String functions.
Definition: benchmark.h:13
Definition: associated_fields.h:12
const Var * get_attribute(const Var &var) const
Get the attribute of var corresponding to this associated field significance.
Holds a variable information table.
Definition: vartable.h:30