class PSerialiser |
This class allows the serialisation of objects to an output stream.
![]() | PSerialiser ( ostream & strm ) Construct a serialiser |
![]() | operator<< (char) Output char to serial stream |
![]() | operator<< (signed char) Output signed char to serial stream |
![]() | operator<< (short) Output short to serial stream |
![]() | operator<< (int) Output int to serial stream |
![]() | operator<< (unsigned long) Output unsigned long to serial streamOutput unsigned int to serial streamOutput unsigned short to serial streamOutput unsigned char to serial stream |
![]() | operator<< (float) Output float to serial stream |
![]() | operator<< (double) Output double to serial stream |
![]() | operator<< (long double) Output long double to serial streamOutput long to serial stream |
![]() | operator<< (const char* ) Output C string to serial stream |
![]() | operator<< (const unsigned char* ) Output C string to serial stream |
![]() | operator<< (const signed char* ) Output C string to serial stream |
![]() | operator<< (PObject &) Output the data to the serialiser object. |
![]() | stream Stream to output serial data to |
Run Time Type functions
I/O functions
Miscellaneous functions
Comparison functions
This class allows the serialisation of objects to an output stream. This packages up objects so that they can be reconstructed by an instance of the PUnSerialiser class. The stream they are sent to can be any stream; file, string, pipe, socket etc.Serialisation can be done in two manners: binary or text. This depends on the serialiser instance that was constructed. Each objects PObject::Serialise() function is called and it is up to that function to output in binary or text.
To a large extent, if only the << operator is used on the PSerialser instance, the text and binary versions of the PObject::Serialise() function can be made identical.
This class is an abstract class and descendents of PTextSerialiser or PBinarySerialiser should be created.
Alphabetic index HTML hierarchy of classes or Java