libdballe
7.21
|
#include <codec.h>
Classes | |
struct | Options |
Public Member Functions | |
Exporter (const Options &opts) | |
virtual std::string | to_binary (const Messages &msgs) const =0 |
Encode a message. More... | |
virtual std::unique_ptr< wreport::Bulletin > | to_bulletin (const Messages &msgs) const =0 |
Export to a Bulletin. | |
virtual std::unique_ptr< wreport::Bulletin > | make_bulletin () const |
Create a bulletin that works with this exporter. More... | |
Static Public Member Functions | |
static std::unique_ptr< Exporter > | create (File::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 BinaryMessage |
Implemented in dballe::msg::CrexExporter, and dballe::msg::BufrExporter.