|
KanoopCommonQt 2.1.1
Kanoop foundational Qt utility library
|
|
Interface for objects that can serialize to and deserialize from a QDataStream. More...
#include <iserializableintodatastream.h>
Public Member Functions | |
| virtual void | deserializeFromDataStream (QDataStream &stream)=0 |
| Populate this object by reading from a QDataStream. | |
| virtual void | serializeIntoDataStream (QDataStream &stream) const =0 |
| Write this object's state into a QDataStream. | |
Interface for objects that can serialize to and deserialize from a QDataStream.
Interface for binary serialization via QDataStream.
Implement both serializeIntoDataStream() and deserializeFromDataStream() to support round-trip binary encoding compatible with Qt's data stream format.
Definition at line 14 of file iserializableintodatastream.h.
|
pure virtual |
Populate this object by reading from a QDataStream.
| stream | Source data stream positioned at the start of this object's data |
|
pure virtual |
Write this object's state into a QDataStream.
| stream | Destination data stream to write to |