libdballe  7.6
Public Member Functions
dballe::msg::WRImporter Class Reference
Inheritance diagram for dballe::msg::WRImporter:
dballe::msg::Importer dballe::msg::BufrImporter dballe::msg::CrexImporter

Public Member Functions

 WRImporter (const Options &opts)
 
Messages from_bulletin (const wreport::Bulletin &msg) const override
 Import a decoded BUFR/CREX message.
 
bool foreach_decoded_bulletin (const wreport::Bulletin &msg, std::function< bool(std::unique_ptr< Message > &&)> dest) const
 Decode a message from its decoded bulletin, calling dest on each resulting Msg. More...
 
- Public Member Functions inherited from dballe::msg::Importer
 Importer (const Options &opts)
 
Messages from_binary (const BinaryMessage &msg) const
 Decode a message from its raw encoded representation. More...
 
virtual bool foreach_decoded (const BinaryMessage &msg, std::function< bool(std::unique_ptr< Message > &&)> dest) const =0
 Decode a message from its raw encoded representation, calling dest on each resulting Message. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from dballe::msg::Importer
static std::unique_ptr< Importercreate (File::Encoding type, const Options &opts=Options())
 Instantiate the right importer for the given type.
 
- Protected Attributes inherited from dballe::msg::Importer
Options opts
 

Member Function Documentation

bool dballe::msg::WRImporter::foreach_decoded_bulletin ( const wreport::Bulletin &  msg,
std::function< bool(std::unique_ptr< Message > &&)>  dest 
) const

Decode a message from its decoded bulletin, calling dest on each resulting Msg.

Return false from dest to stop decoding.

Parameters
rmsgEncoded message.
Return values
destThe function that consumes the decoded messages.
Returns
true if it got to the end of decoding, false if dest returned false.

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