Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
#include <FXStream.h>
Inheritance diagram for FX::FXStream:
Each item of data that is saved or loaded from the stream may be byte-swapped, thus allowing little-endian machines to read data produced on big endian ones and vice-versa. Data is serialized exactly as-is. There are no tags or other markers inserted into the stream; thus, the stream may be used to save or load arbitrary binary data. Objects derived from FXObjects may be serialized also; whenever a reference to an object is serialized, a table is consulted to determine if the same object has been encountered previously; if not, the object is added to the table and then its contents are serialized. If the object has been encountered before, only a reference to the object is serialized. When loading back a serialized object, new instances are constructed using the default constructor, and subsequently the object's contents are loaded. A special container object may be passed in which is placed in the table as if it had been encountered before; this will cause only references to this object to be saved. The container object is typically the top-level document object which manages all objects contained by it. Additional objects may be added using addObject(); these will not be actually saved or loaded.
See also:
|
Construct stream with given container object. The container object is an object that will itself not be saved to or loaded from the stream, but which may be referenced by other objects. These references will be properly saved and restored. |
|
Destructor.
|
|
Open stream for reading (FXStreamLoad) or for writing (FXStreamSave). An initial buffer size may be given, which must be at least 16 bytes. If data is not NULL, it is expected to point to an external data buffer of length size; otherwise stream will use an internally managed buffer. Reimplemented in FX::FXMemoryStream. |
|
Flush buffer.
|
|
Close; return true if OK.
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Get available buffer space.
|
|
Set available buffer space.
|
|
Get status code.
|
|
Return true if at end of file or error.
|
|
Set status code.
|
|
Obtain stream direction.
|
|
Get parent object.
|
|
Get position.
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Move to position relative to head, tail, or current location.
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Change swap bytes flag.
|
|
Get state of the swap bytes flag.
|
|
Set stream to big endian mode if true. Byte swapping will be enabled if the machine native byte order is not equal to the desired byte order. |
|
Return true if big endian mode.
|
|
Save single items to stream.
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Save arrays of items to stream.
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Load single items from stream.
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Load arrays of items from stream.
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Save object.
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Load object.
Reimplemented in FX::FXFileStream, and FX::FXMemoryStream. |
|
Add object without saving or loading.
|
Copyright © 1997-2005 Jeroen van der Zijp |