#include <mcllib/MCSerializer.h>
Inheritance diagram for MCSerializer:
Public Member Functions | |
MCSerializer & | operator<< (const MCString &data) |
Write an MCString float to the serializer. | |
MCSerializer & | operator<< (mcfloat64 data) |
Write a 64-bit float to the serializer. | |
MCSerializer & | operator<< (mcfloat32 data) |
Write a 32-bit float to the serializer. | |
MCSerializer & | operator<< (mcuint64 data) |
Write a 64-bit unsigned int to the serializer. | |
MCSerializer & | operator<< (mcint64 data) |
Write a 64-bit int to the serializer. | |
MCSerializer & | operator<< (mcuint32 data) |
Write a 32-bit unsigned int to the serializer. | |
MCSerializer & | operator<< (mcint32 data) |
Write a 32-bit int to the serializer. | |
MCSerializer & | operator<< (mcuint16 data) |
Write a 16-bit unsigned int to the serializer. | |
MCSerializer & | operator<< (mcint16 data) |
Write a 16-bit int to the serializer. | |
MCSerializer & | operator<< (mcuint8 data) |
Write an 8-bit unsigned int to the serializer. | |
MCSerializer & | operator<< (mcint8 data) |
Write an 8-bit int to the serializer. | |
MCSerializer & | operator<< (bool data) |
Write an bool to the serializer. | |
MCSerializer & | operator>> (MCString &data) |
Read an MCString float from the serializer. | |
MCSerializer & | operator>> (mcfloat64 &data) |
Read a 64-bit float from the serializer. | |
MCSerializer & | operator>> (mcfloat32 &data) |
Read a 32-bit float from the serializer. | |
MCSerializer & | operator>> (mcuint64 &data) |
Read a 64-bit unsigned int from the serializer. | |
MCSerializer & | operator>> (mcint64 &data) |
Read a 64-bit int from the serializer. | |
MCSerializer & | operator>> (mcuint32 &data) |
Read a 32-bit unsigned int from the serializer. | |
MCSerializer & | operator>> (mcint32 &data) |
Read a 32-bit int from the serializer. | |
MCSerializer & | operator>> (mcuint16 &data) |
Read a 16-bit unsigned int from the serializer. | |
MCSerializer & | operator>> (mcint16 &data) |
Read a 16-bit int from the serializer. | |
MCSerializer & | operator>> (mcuint8 &data) |
Read an 8-bit unsigned int from the serializer. | |
MCSerializer & | operator>> (mcint8 &data) |
Read an 8-bit int from the serializer. | |
MCSerializer & | operator>> (bool &data) |
Read a boolt from the serializer. | |
Protected Member Functions | |
MCSerializer (void *impl) | |
Constructor for use by derived classes. |
Serializers allow data to be written to a stream in a platform independent format. The data can later be read from a serializer and the platform specific (internal) representation will be reconstructed. This allows the state of an object to be saved and later recovered even on a different platform with a different CPU architecture (endian-ness).
Implement header put and get functions (like Java)
|
Constructor for use by derived classes. The implementation pointer must be a MCSerializerBaseImpl derived class. |