Class cerializer::Serializer
template <typename T>
ClassList > cerializer > Serializer
A class for serializing messages to a generic output stream. More...
#include <serializer.hpp>
Public Functions
| Type | Name |
|---|---|
| Serializer (T & outputStream) Constructs a Serializer . |
|
| void | Write (const Message< M, U, Fs... > & message) Writes a message to the output stream. |
Detailed Description
Template parameters:
TThe type of the output stream, which must satisfy theIOAbleconcept.
Public Functions Documentation
function Serializer
Constructs a Serializer .
inline cerializer::Serializer::Serializer (
T & outputStream
)
Parameters:
outputStreamThe output stream to write to.
function Write
Writes a message to the output stream.
template<typename M, uint8_t U, typename... Fs>
inline void cerializer::Serializer::Write (
const Message < M, U, Fs... > & message
)
This method serializes the given message into its binary format and writes the result to the stream.
Template parameters:
MThe derived message class.UThe unique message type code.FsThe field types of the message.
Parameters:
messageThe message object to serialize and write.
The documentation for this class was generated from the following file serializer.hpp