1 #ifndef DBALLE_IMPORTER_H 2 #define DBALLE_IMPORTER_H 4 #include <dballe/fwd.h> 27 bool simplified =
true;
33 void print(FILE* out);
36 std::string to_string()
const;
39 static std::unique_ptr<ImporterOptions> create();
42 static std::unique_ptr<ImporterOptions> create(
const std::string& s);
80 virtual Encoding encoding()
const = 0;
90 std::vector<std::shared_ptr<Message>> from_binary(
const BinaryMessage& msg)
const;
95 virtual std::vector<std::shared_ptr<Message>> from_bulletin(
const wreport::Bulletin& msg)
const = 0;
109 virtual bool foreach_decoded(
const BinaryMessage& msg, std::function<
bool(std::unique_ptr<Message>)> dest)
const = 0;
119 static std::unique_ptr<Importer> create(Encoding type,
const ImporterOptions& opts=ImporterOptions::defaults);
129 static std::unique_ptr<Importer> create(Encoding type,
const std::string& opts);
Binary message.
Definition: file.h:130
Message importer interface.
Definition: importer.h:62
Options to control message import.
Definition: importer.h:24
static const ImporterOptions defaults
Default importer options.
Definition: importer.h:45