|
SofaBuffers C/C++ 0.12.0
API Documentation
|
Base class for decodable message objects. More...
#include <sofab.hpp>
Public Member Functions | |
| virtual void | deserialize (sofab::IStreamImpl &_istream, sofab::id _id, size_t _size, size_t _count) noexcept=0 |
| Dispatch one decoded field to the appropriate read. | |
Friends | |
| class | IStreamImpl |
| template<InputMessage MessageType> | |
| class | IStreamObject |
| template<InputMessage MessageType> | |
| class | IStreamInto |
Base class for decodable message objects.
Derive from this and implement deserialize to dispatch each field to the matching IStreamImpl::read(). Instances are decoded standalone via IStreamObject, or as a nested field through IStreamImpl::read().
|
pure virtualnoexcept |
Dispatch one decoded field to the appropriate read.
Called for each field of this message; implementations typically switch on _id and call _istream.read(member).
| _istream | Stream to bind the field's destination on. |
| _id | Field identifier. |
| _size | Field value size in bytes (e.g. string/blob length). |
| _count | Number of array elements (for array fields). |
Implemented in sofab::FixedStringSeq< Container >, sofab::FixedBlobSeq< Container >, sofab::FixedMessageSeq< Container >, sofab::MessageSeq< Container >, sofab::FixedRowSeq< Container, Reader >, and sofab::RowSeq< Container, Reader, Count >.
|
friend |
|
friend |
|
friend |