Protocols::Generics::DataSerializer Class Reference

#include <DataSerializer.h> [code]

Inherited by Protocols::Generics::PacketSerializer, and Protocols::Http::DataSerializer.

Inheritance diagram for Protocols::Generics::DataSerializer:

Inheritance graph
[legend]
List of all members.

Detailed Description

Interface DataSerializer - read and write Data to and from Transport.

DataSerializer provides an abstract solution to the problem of exchanging application data (represented in Data objects) with a remote party over a Transport. A DataSerializer would know the correct binary format and will make sure that Data objects are correctly converted to and from raw bytes which are actually exchanged over the Transport.

DataSerializer further will guarantees that a Data object is either serialized completely (all bytes of its binary representation read to or written to Transport) or not at all. See read() and write() for more details.

Definition at line 46 of file DataSerializer.h.

Public Member Functions

virtual ~DataSerializer ()
virtual bool read (Data &, Transport *)=0
virtual bool write (const Data &, Transport *)=0


Constructor & Destructor Documentation

virtual Protocols::Generics::DataSerializer::~DataSerializer  )  [inline, virtual]
 

Definition at line 51 of file DataSerializer.h.


Member Function Documentation

virtual bool Protocols::Generics::DataSerializer::read Data ,
Transport
[pure virtual]
 

Implemented in Protocols::Generics::PacketSerializer.

virtual bool Protocols::Generics::DataSerializer::write const Data ,
Transport
[pure virtual]
 

Implemented in Protocols::Generics::PacketSerializer.


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