Skip to content

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:

  • T The type of the output stream, which must satisfy the IOAble concept.

Public Functions Documentation

function Serializer

Constructs a Serializer .

inline cerializer::Serializer::Serializer (
    T & outputStream
) 

Parameters:

  • outputStream The 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:

  • M The derived message class.
  • U The unique message type code.
  • Fs The field types of the message.

Parameters:

  • message The message object to serialize and write.


The documentation for this class was generated from the following file serializer.hpp