|
SofaBuffers C++ 0.12.0
Pure-C++20 SofaBuffers — API Documentation
|
Base class for user-defined messages that can serialise themselves. More...
#include <sofab.hpp>
Protected Member Functions | |
| virtual OStreamImpl::Result | serialize (OStreamImpl &ostream) const noexcept=0 |
Write this message's fields into ostream. | |
Friends | |
| class | OStreamImpl |
Base class for user-defined messages that can serialise themselves.
Derive from this and implement serialize to write the message's fields; the object can then be passed to OStreamImpl::write to be encoded as a nested sub-message.
|
protectedpure virtualnoexcept |
Write this message's fields into ostream.
| ostream | Stream to encode into. |
|
friend |