libwreport  3.40
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 class 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 
34  ~AssociatedField();
35 
43  std::unique_ptr<Var> make_attribute(unsigned value) const;
44 
49  const Var* get_attribute(const Var& var) const;
50 };
51 
52 } // namespace bulletin
53 } // namespace wreport
54 #endif
unsigned significance
Significance of C04yyy field according to code table B31021.
Definition: associated_fields.h:31
A physical variable.
Definition: var.h:24
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
Holds a variable information table.
Definition: vartable.h:30
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.