Class MsgpackMessageWriter

Inheritance Relationships

Base Type

Class Documentation

class MsgpackMessageWriter : public RosMsgParser::MessageWriter

MessageWriter that produces MessagePack directly during the schema walk, bypassing FlatMessage entirely.

Public Functions

explicit MsgpackMessageWriter(std::vector<uint8_t> *output)
virtual void writeValue(const FieldLeaf &leaf, const Variant &value) override

Called for each scalar/builtin value (not string, not enum)

virtual void writeString(const FieldLeaf &leaf, const std::string &value) override

Called for each string value.

virtual void writeEnum(const FieldLeaf &leaf, int32_t int_value, const std::string &enum_name) override

Called for each enum value.

virtual void finish() override

Called when the schema walk finishes. Writers can use this to finalize output.