libdballe  7.19
Public Member Functions | List of all members
dballe::msg::BufrImporter Class Reference
Inheritance diagram for dballe::msg::BufrImporter:
dballe::msg::WRImporter dballe::msg::Importer

Public Member Functions

 BufrImporter (const Options &opts=Options())
 
bool foreach_decoded (const BinaryMessage &msg, std::function< bool(std::unique_ptr< Message > &&)> dest) const override
 Decode a message from its raw encoded representation, calling dest on each resulting Message. More...
 
- Public Member Functions inherited from dballe::msg::WRImporter
 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
 Build Message objects a decoded bulletin, calling dest on each resulting Message. 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...
 

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::BufrImporter::foreach_decoded ( const BinaryMessage msg,
std::function< bool(std::unique_ptr< Message > &&)>  dest 
) const
overridevirtual

Decode a message from its raw encoded representation, calling dest on each resulting Message.

Return false from dest to stop decoding.

Parameters
msgEncoded 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.

Implements dballe::msg::Importer.


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