Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

MCSerializer Class Reference

Base class for serializers. More...

#include <mcllib/MCSerializer.h>

Inheritance diagram for MCSerializer:

MCBase MCFileSerializer MCMemSerializer MCSocketSerializer List of all members.

Public Member Functions

MCSerializeroperator<< (const MCString &data)
 Write an MCString float to the serializer.
MCSerializeroperator<< (mcfloat64 data)
 Write a 64-bit float to the serializer.
MCSerializeroperator<< (mcfloat32 data)
 Write a 32-bit float to the serializer.
MCSerializeroperator<< (mcuint64 data)
 Write a 64-bit unsigned int to the serializer.
MCSerializeroperator<< (mcint64 data)
 Write a 64-bit int to the serializer.
MCSerializeroperator<< (mcuint32 data)
 Write a 32-bit unsigned int to the serializer.
MCSerializeroperator<< (mcint32 data)
 Write a 32-bit int to the serializer.
MCSerializeroperator<< (mcuint16 data)
 Write a 16-bit unsigned int to the serializer.
MCSerializeroperator<< (mcint16 data)
 Write a 16-bit int to the serializer.
MCSerializeroperator<< (mcuint8 data)
 Write an 8-bit unsigned int to the serializer.
MCSerializeroperator<< (mcint8 data)
 Write an 8-bit int to the serializer.
MCSerializeroperator<< (bool data)
 Write an bool to the serializer.
MCSerializeroperator>> (MCString &data)
 Read an MCString float from the serializer.
MCSerializeroperator>> (mcfloat64 &data)
 Read a 64-bit float from the serializer.
MCSerializeroperator>> (mcfloat32 &data)
 Read a 32-bit float from the serializer.
MCSerializeroperator>> (mcuint64 &data)
 Read a 64-bit unsigned int from the serializer.
MCSerializeroperator>> (mcint64 &data)
 Read a 64-bit int from the serializer.
MCSerializeroperator>> (mcuint32 &data)
 Read a 32-bit unsigned int from the serializer.
MCSerializeroperator>> (mcint32 &data)
 Read a 32-bit int from the serializer.
MCSerializeroperator>> (mcuint16 &data)
 Read a 16-bit unsigned int from the serializer.
MCSerializeroperator>> (mcint16 &data)
 Read a 16-bit int from the serializer.
MCSerializeroperator>> (mcuint8 &data)
 Read an 8-bit unsigned int from the serializer.
MCSerializeroperator>> (mcint8 &data)
 Read an 8-bit int from the serializer.
MCSerializeroperator>> (bool &data)
 Read a boolt from the serializer.

Protected Member Functions

 MCSerializer (void *impl)
 Constructor for use by derived classes.

Detailed Description

Base class for serializers.

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).

Todo:
Implement encoding of type information

Implement header put and get functions (like Java)


Constructor & Destructor Documentation

MCSerializer void *  impl  )  [protected]
 

Constructor for use by derived classes.

The implementation pointer must be a MCSerializerBaseImpl derived class.


Generated on Wed Jan 12 19:05:50 2005 for MCLLIB by  doxygen 1.3.9.1