1 #ifndef DBALLE_MSG_JSON_CODEC_H 2 #define DBALLE_MSG_JSON_CODEC_H 4 #include <dballe/core/fwd.h> 5 #include <dballe/exporter.h> 6 #include <dballe/importer.h> 7 #include <dballe/message.h> 9 #define DBALLE_JSON_VERSION "0.1" 22 Encoding
encoding()
const override {
return Encoding::JSON; }
25 std::function<
bool(std::shared_ptr<dballe::Message>)>
33 dballe::ExporterOptions::defaults);
36 std::string to_binary(
const std::vector<std::shared_ptr<dballe::Message>>&
Binary message.
Definition: file.h:134
Message importer interface.
Definition: importer.h:68
Message exporter interface.
Definition: exporter.h:64
Options to control message export.
Definition: exporter.h:24
Options to control message import.
Definition: importer.h:24
Definition: json_codec.h:29
Definition: json_codec.h:15
static const ImporterOptions defaults
Default importer options.
Definition: importer.h:52
Encoding encoding() const override
Return the encoding for this importer.
Definition: json_codec.h:22