Sign in Join
FPDoc Onlineexperiment

TStreamCollection class

In unit StreamColl

Collection with stream support.

Declaration

pascal
TStreamCollection = class(TCollection)

Inheritance

  1. TStreamCollection
  2. TCollection
  3. TPersistent
  4. TObject

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.

See also

Properties

StreamingpublicIndicates whether the collection is currently being written to stream.

Methods

WriteIntegerprotected
WriteBooleanprotected
WriteStringprotected
WriteCurrencyprotected
WriteDateTimeprotected
WriteFloatprotected
ReadIntegerprotected
ReadBooleanprotected
ReadStringprotected
ReadCurrencyprotected
ReadDateTimeprotected
ReadFloatprotected
DoSaveToStreamprotected
CurrentStreamVersionprotected
DoLoadFromStreamprotected
LoadFromStreampublicLoad the collection from a stream.
SaveToStreampublicLoad the collection from the stream.

Inherited

From TCollection (31)

Add Assign BeginUpdate Changed Clear Count Create Delete Destroy EndUpdate Exchange FindItemID GetAttr GetAttrCount GetEnumerator GetItem GetItemAttr GetNamePath Insert ItemClass Items Move Notify Owner PropName SetItem SetItemName SetPropName Sort Update UpdateCount

From TPersistent (6)

AssignTo DefineProperties FPOAttachObserver FPODetachObserver FPONotifyObservers GetOwner

From TObject (40)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

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