StreamColl unit
Collection which can stream itself.
The streamcoll unit contains the implementation of a collection
(and corresponding collection item) which implements routines for saving or
loading the collection to/from a stream. The collection item should
implement 2 routines to implement the streaming; the streaming itself
is not performed by the TStreamCollection collection item.
The streaming performed here is not compatible with the streaming
implemented in the Classes unit for components. It is independent
of the latter and can be used without a component to hold the collection.
The collection item introduces mostly protected methods, and the unit contains a lot of auxiliary routines which aid in streaming.
Classes and records
EStreamColl | class | Exception raised when an error occurs when streaming the collection. |
TStreamCollection | class | Collection with stream support. |
TStreamCollectionItem | class | Collection item with streaming support. |
Procedures and functions
ColReadBoolean | function | Read a boolean value from a stream. |
ColReadCurrency | function | Read a currency value from the stream. |
ColReadDateTime | function | Read a TDateTime value from a stream. |
ColReadFloat | function | Read a floating point value from a stream. |
ColReadInteger | function | Read a 32-bit integer from a stream. |
ColReadString | function | Read a string from a stream. |
ColWriteBoolean | procedure | Write a boolean to a stream. |
ColWriteCurrency | procedure | Write a currency value to stream. |
ColWriteDateTime | procedure | Write a TDateTime value to stream. |
ColWriteFloat | procedure | Write floating point value to stream. |
ColWriteInteger | procedure | Write a 32-bit integer to a stream. |
ColWriteString | procedure | Write a string value to the stream. |
Uses
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
