EmbeddedProto  2.0.0
EmbeddedProto is a C++ Protocol Buffer implementation specifically suitable for microcontrollers.
Public Member Functions | List of all members
EmbeddedProto::MessageInterface Class Referenceabstract

#include <MessageInterface.h>

Inheritance diagram for EmbeddedProto::MessageInterface:
Inheritance graph
Collaboration diagram for EmbeddedProto::MessageInterface:
Collaboration graph

Public Member Functions

 MessageInterface ()=default
virtual ~MessageInterface ()=default
Error serialize_with_id (uint32_t field_number, ::EmbeddedProto::WriteBufferInterface &buffer) const final
virtual void clear ()=0
 Clear the content of this message and set it to it's default state. More...
- Public Member Functions inherited from EmbeddedProto::Field
 Field ()=default
virtual ~Field ()=default
virtual Error serialize_with_id (uint32_t field_number, WriteBufferInterface &buffer) const =0
virtual Error serialize (WriteBufferInterface &buffer) const =0
virtual Error deserialize (ReadBufferInterface &buffer)=0
uint32_t serialized_size () const
 Calculate the size of this message when serialized. More...

Constructor & Destructor Documentation

◆ MessageInterface()

EmbeddedProto::MessageInterface::MessageInterface ( )

◆ ~MessageInterface()

virtual EmbeddedProto::MessageInterface::~MessageInterface ( )

Member Function Documentation

◆ clear()

virtual void EmbeddedProto::MessageInterface::clear ( )
pure virtual

Clear the content of this message and set it to it's default state.

The defaults are to be set according to the Protobuf standard.

Implements EmbeddedProto::Field.

◆ serialize_with_id()

Error EmbeddedProto::MessageInterface::serialize_with_id ( uint32_t  field_number,
::EmbeddedProto::WriteBufferInterface buffer 
) const

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