libwreport 3.34
Public Member Functions | Data Fields
wreport::bufr::UncompressedDecoderTarget Struct Reference
Inheritance diagram for wreport::bufr::UncompressedDecoderTarget:
wreport::bufr::DecoderTarget

Public Member Functions

 UncompressedDecoderTarget (Input &in, Subset &out)
 
const Subsetreference_subset () const override
 Return the reference to a subset that is receiving the data currently decoded. More...
 
Varinfo lookup_info (unsigned pos) const override
 Return information about a value previously stored at the given position. More...
 
Var decode_uniform_b_value (Varinfo info) override
 Decode a value that must always be the same across all datasets. More...
 
const Vardecode_and_add_to_all (Varinfo info) override
 Decode and add the same value to all datasets, return a reference to one of the variables added. More...
 
const Vardecode_and_add_bitmap (const Tables &tables, Varcode code, unsigned bitmap_size) override
 
void decode_and_set_attribute (Varinfo info, unsigned pos) override
 Decode an attribute with the given description, and add it to data at position pos. More...
 
void decode_and_add_b_value (Varinfo info) override
 Decode a B-table value and add its value(s) to the target subset(s) More...
 
void decode_and_add_b_value_with_associated_field (Varinfo info, const bulletin::AssociatedField &field) override
 Decode a B-table value with associated field, and add its value(s) to the target subset(s) More...
 
void decode_and_add_raw_character_data (Varinfo info) override
 Decode raw character data described by code and add it to the target subset(s) More...
 
int decode_c03_refval_override (unsigned bits) override
 Decode the given number of bits a signed integer, to use as a new value for B table reference value. More...
 
void print_last_variable_added (FILE *out) override
 Print the value(s) of the last variable(s) added to out. More...
 
void print_last_attribute_added (FILE *out, Varcode code, unsigned pos) override
 Print the value(s) of the last attributes(s) with the given code added to out. More...
 
- Public Member Functions inherited from wreport::bufr::DecoderTarget
 DecoderTarget (Input &in)
 
virtual const Subsetreference_subset () const =0
 Return the reference to a subset that is receiving the data currently decoded. More...
 
virtual Varinfo lookup_info (unsigned pos) const =0
 Return information about a value previously stored at the given position. More...
 
virtual Var decode_uniform_b_value (Varinfo info)=0
 Decode a value that must always be the same across all datasets. More...
 
virtual const Vardecode_and_add_to_all (Varinfo info)=0
 Decode and add the same value to all datasets, return a reference to one of the variables added. More...
 
virtual const Vardecode_and_add_bitmap (const Tables &tables, Varcode code, unsigned bitmap_size)=0
 
virtual void decode_and_set_attribute (Varinfo info, unsigned pos)=0
 Decode an attribute with the given description, and add it to data at position pos. More...
 
virtual void decode_and_add_b_value (Varinfo info)=0
 Decode a B-table value and add its value(s) to the target subset(s) More...
 
virtual void decode_and_add_b_value_with_associated_field (Varinfo info, const bulletin::AssociatedField &field)=0
 Decode a B-table value with associated field, and add its value(s) to the target subset(s) More...
 
virtual void decode_and_add_raw_character_data (Varinfo info)=0
 Decode raw character data described by code and add it to the target subset(s) More...
 
virtual int decode_c03_refval_override (unsigned bits)=0
 Decode the given number of bits a signed integer, to use as a new value for B table reference value. More...
 
virtual void print_last_variable_added (FILE *out)=0
 Print the value(s) of the last variable(s) added to out. More...
 
virtual void print_last_attribute_added (FILE *out, Varcode code, unsigned pos)=0
 Print the value(s) of the last attributes(s) with the given code added to out. More...
 

Data Fields

Subsetout
 Subset where decoded variables go.
 
- Data Fields inherited from wreport::bufr::DecoderTarget
Inputin
 Input buffer.
 

Member Function Documentation

◆ decode_and_add_b_value()

void wreport::bufr::UncompressedDecoderTarget::decode_and_add_b_value ( Varinfo  info)
overridevirtual

Decode a B-table value and add its value(s) to the target subset(s)

Implements wreport::bufr::DecoderTarget.

◆ decode_and_add_b_value_with_associated_field()

void wreport::bufr::UncompressedDecoderTarget::decode_and_add_b_value_with_associated_field ( Varinfo  info,
const bulletin::AssociatedField field 
)
overridevirtual

Decode a B-table value with associated field, and add its value(s) to the target subset(s)

Implements wreport::bufr::DecoderTarget.

◆ decode_and_add_bitmap()

const Var & wreport::bufr::UncompressedDecoderTarget::decode_and_add_bitmap ( const Tables tables,
Varcode  code,
unsigned  bitmap_size 
)
overridevirtual

◆ decode_and_add_raw_character_data()

void wreport::bufr::UncompressedDecoderTarget::decode_and_add_raw_character_data ( Varinfo  info)
overridevirtual

Decode raw character data described by code and add it to the target subset(s)

Implements wreport::bufr::DecoderTarget.

◆ decode_and_add_to_all()

const Var & wreport::bufr::UncompressedDecoderTarget::decode_and_add_to_all ( Varinfo  info)
overridevirtual

Decode and add the same value to all datasets, return a reference to one of the variables added.

Implements wreport::bufr::DecoderTarget.

◆ decode_and_set_attribute()

void wreport::bufr::UncompressedDecoderTarget::decode_and_set_attribute ( Varinfo  info,
unsigned  pos 
)
overridevirtual

Decode an attribute with the given description, and add it to data at position pos.

Implements wreport::bufr::DecoderTarget.

◆ decode_c03_refval_override()

int wreport::bufr::UncompressedDecoderTarget::decode_c03_refval_override ( unsigned  bits)
overridevirtual

Decode the given number of bits a signed integer, to use as a new value for B table reference value.

Implements wreport::bufr::DecoderTarget.

◆ decode_uniform_b_value()

Var wreport::bufr::UncompressedDecoderTarget::decode_uniform_b_value ( Varinfo  info)
overridevirtual

Decode a value that must always be the same across all datasets.

Do not add it to the output.

Returns
the decoded value

Implements wreport::bufr::DecoderTarget.

◆ lookup_info()

Varinfo wreport::bufr::UncompressedDecoderTarget::lookup_info ( unsigned  pos) const
overridevirtual

Return information about a value previously stored at the given position.

Implements wreport::bufr::DecoderTarget.

◆ print_last_attribute_added()

void wreport::bufr::UncompressedDecoderTarget::print_last_attribute_added ( FILE *  out,
Varcode  code,
unsigned  pos 
)
overridevirtual

Print the value(s) of the last attributes(s) with the given code added to out.

Implements wreport::bufr::DecoderTarget.

◆ print_last_variable_added()

void wreport::bufr::UncompressedDecoderTarget::print_last_variable_added ( FILE *  out)
overridevirtual

Print the value(s) of the last variable(s) added to out.

Implements wreport::bufr::DecoderTarget.

◆ reference_subset()

const Subset & wreport::bufr::UncompressedDecoderTarget::reference_subset ( ) const
overridevirtual

Return the reference to a subset that is receiving the data currently decoded.

For uncompressed decoders, this is the current subset. For compressed decoders, it is the first subset.

Implements wreport::bufr::DecoderTarget.


The documentation for this struct was generated from the following file: