associated_fields.h
#ifndef WREPORT_BULLETIN_ASSOCIATED_FIELDS_H
#define WREPORT_BULLETIN_ASSOCIATED_FIELDS_H
#include <memory>
namespace wreport {
struct Var;
struct Vartable;
namespace bulletin {
struct AssociatedField
{
const Vartable& btable;
bool skip_missing;
unsigned bit_count;
unsigned significance;
AssociatedField(const Vartable& btable);
~AssociatedField();
std::unique_ptr<Var> make_attribute(unsigned value) const;
const Var* get_attribute(const Var& var) const;
};
}
}
#endif
wreport::Var
A physical variable.
Definition var.h:25
wreport::Vartable
Holds a variable information table.
Definition vartable.h:30
wreport::bulletin
The bulletin namespace contains bulletin implementation details, internals and utility functions.
Definition input.h:13
wreport
String functions.
Definition benchmark.h:13
wreport::bulletin::AssociatedField::make_attribute
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...
wreport::bulletin::AssociatedField::bit_count
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
wreport::bulletin::AssociatedField::significance
unsigned significance
Significance of C04yyy field according to code table B31021.
Definition associated_fields.h:31
wreport::bulletin::AssociatedField::skip_missing
bool skip_missing
If true, fields with a missing values will be returned as 0.
Definition associated_fields.h:22
wreport::bulletin::AssociatedField::get_attribute
const Var * get_attribute(const Var &var) const
Get the attribute of var corresponding to this associated field significance.
wreport::bulletin::AssociatedField::btable
const Vartable & btable
B table used to generate associated field attributes.
Definition associated_fields.h:15