1 #ifndef DBALLE_EXPORTER_H 2 #define DBALLE_EXPORTER_H 4 #include <dballe/fwd.h> 29 int centre = MISSING_INT;
31 int subcentre = MISSING_INT;
33 int application = MISSING_INT;
40 void print(FILE* out);
43 std::string to_string()
const;
46 static std::unique_ptr<ExporterOptions> create();
88 virtual std::string to_binary(
const std::vector<std::shared_ptr<Message>>& messages)
const = 0;
93 virtual std::unique_ptr<wreport::Bulletin> to_bulletin(
const std::vector<std::shared_ptr<Message>>& msgs)
const = 0;
101 virtual std::unique_ptr<wreport::Bulletin> make_bulletin()
const;
105 static std::unique_ptr<Exporter> create(Encoding type,
const ExporterOptions& opts=ExporterOptions::defaults);
Message exporter interface.
Definition: exporter.h:65
std::string template_name
Name of template to use for output (leave empty to autodetect)
Definition: exporter.h:27
Options to control message export.
Definition: exporter.h:24