Public Member Functions | List of all members
eip::serialization::Serializable Class Referenceabstract

#include <serializable.h>

Inheritance diagram for eip::serialization::Serializable:
Inheritance graph
[legend]

Public Member Functions

virtual Readerdeserialize (Reader &reader)=0
 
virtual Readerdeserialize (Reader &reader, size_t length)=0
 
virtual size_t getLength () const =0
 
virtual Writerserialize (Writer &writer) const =0
 

Detailed Description

Interface for all serializable data

Definition at line 38 of file serializable.h.

Member Function Documentation

◆ deserialize() [1/2]

virtual Reader& eip::serialization::Serializable::deserialize ( Reader reader)
pure virtual

Deserialize data from the given reader without length information

Parameters
readerReader to use for deserialization
Returns
the reader again
Exceptions
std::length_errorif the buffer is overrun while deserializing

Implemented in eip::ForwardOpenRequest, eip::EncapPacket, eip::CPFItem, eip::serialization::SerializableBuffer, eip::MessageRouterRequest, eip::ForwardOpenSuccess, eip::ForwardCloseRequest, eip::ForwardCloseSuccess, eip::EncapHeader, eip::MessageRouterResponse, eip::CPFPacket, eip::serialization::SerializablePrimitive< T >, eip::RRData, eip::RegisterSessionData, eip::SequencedAddressItem, and eip::IdentityItemData.

◆ deserialize() [2/2]

virtual Reader& eip::serialization::Serializable::deserialize ( Reader reader,
size_t  length 
)
pure virtual

Deserialize data from the given reader with the length given

Parameters
readerReader to use for deserialization
lengthLength expected for data
Returns
the reader again
Exceptions
std::length_errorif the buffer is overrun while deserializing

Implemented in eip::ForwardOpenRequest, eip::EncapPacket, eip::CPFItem, eip::MessageRouterRequest, eip::serialization::SerializableBuffer, eip::ForwardOpenSuccess, eip::ForwardCloseRequest, eip::ForwardCloseSuccess, eip::MessageRouterResponse, eip::CPFPacket, eip::EncapHeader, eip::RRData, eip::serialization::SerializablePrimitive< T >, eip::SequencedAddressItem, eip::RegisterSessionData, and eip::IdentityItemData.

◆ getLength()

virtual size_t eip::serialization::Serializable::getLength ( ) const
pure virtual

◆ serialize()

virtual Writer& eip::serialization::Serializable::serialize ( Writer writer) const
pure virtual

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


odva_ethernetip
Author(s): Kareem Shehata
autogenerated on Wed Mar 2 2022 00:38:56