libdballe 9.6
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
dballe::cmdline::Converter Struct Reference
Inheritance diagram for dballe::cmdline::Converter:
dballe::cmdline::Action

Public Member Functions

void set_exporter (dballe::Encoding encoding, const impl::ExporterOptions &opts)
 
virtual bool operator() (const cmdline::Item &item)
 Convert the item as configured in the Converter, and write it to the output file.
 
virtual bool operator() (const Item &item)=0
 

Public Attributes

Filefile = nullptr
 
const char * dest_rep_memo = nullptr
 
const char * dest_template = nullptr
 
bool bufr2netcdf_categories = false
 

Protected Member Functions

void process_bufrex_msg (const BinaryMessage &orig, const wreport::Bulletin &msg)
 Perform conversion at the encoding level only (e.g.
 
void process_dba_msg (const BinaryMessage &orig, const std::vector< std::shared_ptr< dballe::Message > > &msgs)
 Perform conversion of decoded data, auto-inferring type/subtype/localsubtype from the Messages contents.
 
void process_dba_msg_from_bulletin (const BinaryMessage &orig, const wreport::Bulletin &bulletin, const std::vector< std::shared_ptr< dballe::Message > > &msgs)
 Perform conversion of decded data, using the original bulletin for type/subtype/localsubtype information.
 

Protected Attributes

Exporterexporter = nullptr
 
const BulletinExporterbexporter = nullptr
 

Member Function Documentation

◆ operator()()

virtual bool dballe::cmdline::Converter::operator() ( const cmdline::Item item)
virtual

Convert the item as configured in the Converter, and write it to the output file.

Implements dballe::cmdline::Action.

◆ process_bufrex_msg()

void dballe::cmdline::Converter::process_bufrex_msg ( const BinaryMessage orig,
const wreport::Bulletin msg 
)
protected

Perform conversion at the encoding level only (e.g.

BUFR->CREX)

Parameters
origOriginal BinaryMessage used for its source information, to report errors
msgDecoded wreport::Bulletin to to convert

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