SofaBuffers C/C++ 0.12.0
API Documentation
Loading...
Searching...
No Matches
sofab::OStreamMessage Class Referenceabstract

Base class for serializable message objects. More...

#include <sofab.hpp>

Inheritance diagram for sofab::OStreamMessage:
[legend]

Protected Member Functions

virtual OStreamImpl::Result serialize (OStreamImpl &_ostream) const noexcept=0
 Serialize this message's fields into _ostream.
 

Detailed Description

Base class for serializable message objects.

Derive from this and implement serialize to define how the message's fields are written. Use with OStreamObject to encode instances.

Definition at line 1842 of file sofab.hpp.

Member Function Documentation

◆ serialize()

virtual OStreamImpl::Result sofab::OStreamMessage::serialize ( OStreamImpl &  _ostream) const
protectedpure virtualnoexcept

Serialize this message's fields into _ostream.

Parameters
_ostreamOutput stream to write the fields to.
Returns
The encode OStreamImpl::Result.

The documentation for this class was generated from the following file: