libdballe 5.10
|
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. | |
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. | |
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 std::auto_ptr<wreport::Bulletin> dballe::msg::Exporter::make_bulletin | ( | ) | const [virtual] |
Create a bulletin that works with this exporter.
Reimplemented in dballe::msg::BufrExporter, and dballe::msg::CrexExporter.
virtual void dballe::msg::Exporter::to_rawmsg | ( | const Msgs & | msgs, |
Rawmsg & | msg | ||
) | const [pure virtual] |
Encode a message.
msgs | Message to encode |
rmsg | The resulting Rawmsg |
Implemented in dballe::msg::BufrExporter, and dballe::msg::CrexExporter.