Skip to content

TStreamCollection

Collection with stream support.

Declaration

Source position: streamcoll.pp line 48

type

  TStreamCollection = class(TCollection)
  public
    procedure LoadFromStream;
    procedure SaveToStream;
    property Streaming: Boolean; {r}
  end;

Description

TStreamCollection is a TCollection descendent which implements 2 calls LoadFromStream and SaveToStream which load and save the contents of the collection to a stream.

The collection items must be descendents of the TStreamCollectionItem class for the streaming to work correctly.

Note that the stream must be used to load collections of the same type.

Properties

Member Visibility Description
Streaming read only public Indicates whether the collection is currently being written to stream.
See all Properties

Methods

Member Visibility Description
LoadFromStream public Load the collection from a stream.
SaveToStream public Load the collection from the stream.
See all Methods

See also

Name Description
TStreamCollectionItem Collection item with streaming support.