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

MCMemSerializer Class Reference

A serializer (see MCSerializer) which serializes objects to a memory buffer. More...

#include <mcllib/MCMemSerializer.h>

Inheritance diagram for MCMemSerializer:

MCSerializer MCBase List of all members.

Public Member Functions

 MCMemSerializer (MCSerializer &ser)
 Construct a memory serializer from another serializer The next item in the input stream of the serializer must be an MCMemSerializer put onto the stream with put().
 MCMemSerializer (bool hasType)
 Construct a memory serializer.
MCSerializerput (MCSerializer &ser) const
 Put a memory serializer onto another serializer.

Detailed Description

A serializer (see MCSerializer) which serializes objects to a memory buffer.


Constructor & Destructor Documentation

MCMemSerializer bool  hasType  ) 
 

Construct a memory serializer.

Information serialized to the mem serializer can be deserialized (one off) from the same mem serializer.

Parameters:
hasType if true, on output, type information will be written with the data. If false, type information will not be written with the data. Type information allows serialized data to be read by applications which do not understand the format of the data. A mem serializer must specify the same value for hasType for both writing and reading.

MCMemSerializer MCSerializer ser  ) 
 

Construct a memory serializer from another serializer The next item in the input stream of the serializer must be an MCMemSerializer put onto the stream with put().

Parameters:
ser the serializer to read from.


Member Function Documentation

MCSerializer& put MCSerializer ser  )  const
 

Put a memory serializer onto another serializer.

A memory serializer can be put onto another serializer (for instance a file or a socket) and later extracted using the MCMemSerializer(MCSerializer&) constructor.

Parameters:
ser the serializer to put this mem serializer onto.
Returns:
the mem serializer


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