DelegateMQ
Loading...
Searching...
No Matches
serialize::I Class Referenceabstract

Abstract interface that all serialized user defined classes inherit. More...

#include <msg_serialize.h>

Public Member Functions

virtual std::ostream & write (serialize &ms, std::ostream &os)=0
 
virtual std::istream & read (serialize &ms, std::istream &is)=0
 

Detailed Description

Abstract interface that all serialized user defined classes inherit.

Member Function Documentation

◆ read()

virtual std::istream & serialize::I::read ( serialize & ms,
std::istream & is )
pure virtual

Inheriting class implements the read function. Read each class member to the ostream. Read in the same order as write(). Each level within the hierarchy must implement. Ensure base read() implementation is called if necessary.

Parameters
[in]ms- the message serialize instance
[in]is- the input stream
Returns
The input stream

◆ write()

virtual std::ostream & serialize::I::write ( serialize & ms,
std::ostream & os )
pure virtual

Inheriting class implements the write function. Write each class member to the ostream. Write in the same order as read(). Each level within the hierarchy must implement. Ensure base write() implementation is called if necessary.

Parameters
[in]ms- the message serialize instance
[in]is- the input stream
Returns
The input stream

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