/usr/include/wreport/bulletin/associated_fields.h is in libwreport-dev 3.5-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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | #ifndef WREPORT_BULLETIN_ASSOCIATED_FIELDS_H
#define WREPORT_BULLETIN_ASSOCIATED_FIELDS_H
#include <memory>
namespace wreport {
struct Var;
struct Vartable;
namespace bulletin {
struct AssociatedField
{
/// B table used to generate associated field attributes
const Vartable& btable;
/**
* If true, fields with a missing values will be returned as 0. If it is
* false, fields with missing values will be returned as undefined
* variables.
*/
bool skip_missing;
/**
* Number of extra bits inserted by the current C04yyy modifier (0 for no
* C04yyy operator in use)
*/
unsigned bit_count;
/// Significance of C04yyy field according to code table B31021
unsigned significance;
AssociatedField(const Vartable& btable);
~AssociatedField();
/**
* Create a Var that can be used as an attribute for the currently defined
* associated field and the given value.
*
* A return value of nullptr means "no field to associate".
*
*/
std::unique_ptr<Var> make_attribute(unsigned value) const;
/**
* Get the attribute of var corresponding to this associated field
* significance.
*/
const Var* get_attribute(const Var& var) const;
};
}
}
#endif
|