Sign in Join
FPDoc Onlineexperiment

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

EStreamCollclassException raised when an error occurs when streaming the collection.
TStreamCollectionclassCollection with stream support.
TStreamCollectionItemclassCollection item with streaming support.

Procedures and functions

ColReadBooleanfunctionRead a boolean value from a stream.
ColReadCurrencyfunctionRead a currency value from the stream.
ColReadDateTimefunctionRead a TDateTime value from a stream.
ColReadFloatfunctionRead a floating point value from a stream.
ColReadIntegerfunctionRead a 32-bit integer from a stream.
ColReadStringfunctionRead a string from a stream.
ColWriteBooleanprocedureWrite a boolean to a stream.
ColWriteCurrencyprocedureWrite a currency value to stream.
ColWriteDateTimeprocedureWrite a TDateTime value to stream.
ColWriteFloatprocedureWrite floating point value to stream.
ColWriteIntegerprocedureWrite a 32-bit integer to a stream.
ColWriteStringprocedureWrite a string value to the stream.

Uses

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.