libdballe
6.8
|
Message exporter. More...
#include <codec.h>
Data Structures | |
struct | Options |
Public Member Functions | |
Exporter (const Options &opts) | |
virtual void | to_rawmsg (const Msgs &msgs, Rawmsg &msg) const =0 |
Encode a message. More... | |
virtual void | to_bulletin (const Msgs &msgs, wreport::Bulletin &msg) const =0 |
Export to a Bulletin. | |
virtual std::auto_ptr < wreport::Bulletin > | make_bulletin () const |
Create a bulletin that works with this exporter. More... | |
Static Public Member Functions | |
static std::auto_ptr< Exporter > | create (Encoding type, const Options &opts=Options()) |
Instantiate the right importer for the given type. | |
Protected Attributes | |
Options | opts |
Message exporter.
This class is designed like a configurable virtual functor.
Exporters of various kinds can provide their implementations.
|
virtual |
Create a bulletin that works with this exporter.
Reimplemented in dballe::msg::CrexExporter, and dballe::msg::BufrExporter.
|
pure virtual |
Encode a message.
msgs | Message to encode |
rmsg | The resulting Rawmsg |
Implemented in dballe::msg::CrexExporter, and dballe::msg::BufrExporter.