class PBinarySerialiser: public PSerialiser

This serialiser class serialises each object using binary data.

Inheritance:


Public Methods

[more] PBinarySerialiser ( ostream & strm, PObject & data )
Create a binary serialiser.
[more] ~PBinarySerialiser ()
Destroy the serialiser and its class table.
[more]PSerialiser& operator<< (char)
Output primitive to stream.
[more]PSerialiser& operator<< (unsigned char)
Output primitive to stream.
[more]PSerialiser& operator<< (signed char)
Output primitive to stream.
[more]PSerialiser& operator<< (short)
Output primitive to stream.
[more]PSerialiser& operator<< (unsigned short)
Output primitive to stream.
[more]PSerialiser& operator<< (int)
Output primitive to stream.
[more]PSerialiser& operator<< (unsigned int)
Output primitive to stream.
[more]PSerialiser& operator<< (long)
Output primitive to stream.
[more]PSerialiser& operator<< (unsigned long)
Output primitive to stream.
[more]PSerialiser& operator<< (float)
Output primitive to stream.
[more]PSerialiser& operator<< (double)
Output primitive to stream.
[more]PSerialiser& operator<< (long double)
Output primitive to stream.
[more]PSerialiser& operator<< (const char *)
Output primitive to stream.
[more]PSerialiser& operator<< (const unsigned char *)
Output primitive to stream.
[more]PSerialiser& operator<< (const signed char *)
Output primitive to stream.
[more]virtual PSerialiser& operator<< (PObject & obj)
Output the data to the serialiser object.

Protected Fields

[more]PSortedStringList* classesUsed
List of classes used during serialisation.


Inherited from PSerialiser:

Protected Fields

oostream& stream


Inherited from PObject:

Public

Run Time Type functions

Comparison functions

I/O functions

Miscellaneous functions


Documentation

This serialiser class serialises each object using binary data. This gives the highest level data density at the expense of some portability and possibly the speed of execution.

This is because two passes through the objects is made, the first to determine the classes and sizes and the second to actually output the data. A table of classes must also be output to set the correspondence between the class codes used in the output and the class names that are required by the unserialiser to construct instances of those classes.

o PBinarySerialiser( ostream & strm, PObject & data )
Create a binary serialiser.

o ~PBinarySerialiser()
Destroy the serialiser and its class table.

oPSerialiser& operator<<(char)
Output primitive to stream.

oPSerialiser& operator<<(unsigned char)
Output primitive to stream.

oPSerialiser& operator<<(signed char)
Output primitive to stream.

oPSerialiser& operator<<(short)
Output primitive to stream.

oPSerialiser& operator<<(unsigned short)
Output primitive to stream.

oPSerialiser& operator<<(int)
Output primitive to stream.

oPSerialiser& operator<<(unsigned int)
Output primitive to stream.

oPSerialiser& operator<<(long)
Output primitive to stream.

oPSerialiser& operator<<(unsigned long)
Output primitive to stream.

oPSerialiser& operator<<(float)
Output primitive to stream.

oPSerialiser& operator<<(double)
Output primitive to stream.

oPSerialiser& operator<<(long double)
Output primitive to stream.

oPSerialiser& operator<<(const char *)
Output primitive to stream.

oPSerialiser& operator<<(const unsigned char *)
Output primitive to stream.

oPSerialiser& operator<<(const signed char *)
Output primitive to stream.

ovirtual PSerialiser& operator<<(PObject & obj)
Output the data to the serialiser object. When the operator is executed on a PObject descendent then that objects PObject::Serialise() function is called.

oPSortedStringList* classesUsed
List of classes used during serialisation.


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.