|
libdballe
5.18
|
Message importer. More...
#include <codec.h>
Data Structures | |
| struct | Options |
Public Member Functions | |
| Importer (const Options &opts) | |
| virtual void | from_rawmsg (const Rawmsg &msg, Msgs &msgs) const =0 |
| Decode a message from its raw encoded representation. | |
| virtual void | from_bulletin (const wreport::Bulletin &msg, Msgs &msgs) const =0 |
| Import a decoded BUFR/CREX message. | |
Static Public Member Functions | |
| static std::auto_ptr< Importer > | create (Encoding type, const Options &opts=Options()) |
| Instantiate the right importer for the given type. | |
Protected Attributes | |
| Options | opts |
Message importer.
This class is designed like a configurable virtual functor.
Importers of various kinds can provide their implementations.
| virtual void dballe::msg::Importer::from_rawmsg | ( | const Rawmsg & | msg, |
| Msgs & | msgs | ||
| ) | const [pure virtual] |
Decode a message from its raw encoded representation.
| rmsg | Encoded message |
| msgs | The resulting ::dba_msg |
Implemented in dballe::msg::AOFImporter, dballe::msg::CrexImporter, and dballe::msg::BufrImporter.
1.7.6.1