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

Public Member Functions

 WRImporter (const dballe::ImporterOptions &opts)
 
std::vector< std::shared_ptr< dballe::Message > > 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::shared_ptr< dballe::Message >)> dest) const
 Build Message objects a decoded bulletin, calling dest on each resulting Message. More...
 
- Public Member Functions inherited from dballe::BulletinImporter
 Importer (const ImporterOptions &opts)
 
 Importer (const Importer &)=delete
 
 Importer (Importer &&)=delete
 
- Public Member Functions inherited from dballe::Importer
 Importer (const Importer &)=delete
 
 Importer (Importer &&)=delete
 
Importeroperator= (const Importer &)=delete
 
Importeroperator= (Importer &&)=delete
 
virtual Encoding encoding () const =0
 Return the encoding for this importer.
 
std::vector< std::shared_ptr< Message > > 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::shared_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::Importer
static std::unique_ptr< Importercreate (Encoding type, const ImporterOptions &opts=ImporterOptions::defaults)
 Instantiate an importer. More...
 
static std::unique_ptr< Importercreate (Encoding type, const std::string &opts)
 Instantiate an importer. More...
 
- Protected Member Functions inherited from dballe::Importer
 Importer (const ImporterOptions &opts)
 
- Protected Attributes inherited from dballe::Importer
ImporterOptions opts
 

Member Function Documentation

◆ foreach_decoded_bulletin()

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

Build Message objects a decoded bulletin, calling dest on each resulting Message.

Return false from dest to stop decoding.

Parameters
msgDecoded bulletin.
Return values
destThe function that consumes the interpreted 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: