Sign in Join
FPDoc Onlineexperiment

TAbstractObjectReader class

In unit Classes

Abstract driver class to read stored component data.

Declaration

pascal
TAbstractObjectReader = class

Descends from it: TBinaryObjectReader TLRSObjectReader TXMLObjectReader

Description

The Free Pascal streaming mechanism, while compatible with Delphi's mechanism, differs from it in the sense that the streaming mechanism uses a driver class when streaming components. The TAbstractObjectReader class is the base driver class for reading property values from streams. It consists entirely of abstract methods, which must be implemented by descendant classes.

Different streaming mechanisms can be implemented by making a descendant from TAbstractObjectReader. The TBinaryObjectReader class is such a descendant class, which streams data in binary (Delphi compatible) format.

All methods described in this class, must be implemented by descendant classes.

See also

Methods

FlushBufferpublicFlush the buffer.
NextValuepublicReturns the type of the next value in the stream.
ReadValuepublicReads the type of the next value.
CurrentValuepublic
BeginRootComponentpublicStarts the reading of the root component.
BeginComponentpublicMarks the reading of a new component.
BeginPropertypublicMarks the reading of a property value.
ReadPrefixpublic
ReadpublicRead raw data from stream.
ReadBinarypublicRead binary data from the stream.
ReadFloatpublicRead a float value from the stream.
ReadSinglepublicRead a single (real-type) value from the stream.
ReadDoublepublic
ReadDatepublicRead a date value from the stream.
ReadCurrencypublicRead a currency value from the stream.
ReadIdentpublicRead an identifier from the stream.
ReadInt8publicRead an 8-bit integer from the stream.
ReadInt16publicRead a 16-bit integer from the stream.
ReadInt32publicRead a 32-bit integer from the stream.
ReadInt64publicRead a 64-bit integer from the stream.
ReadSetpublicReads a set from the stream.
ReadSignaturepublicRead resource signature.
ReadStrpublicRead a shortstring from the stream.
ReadStringpublicRead a string of type StringType from the stream.
ReadWideStringpublicRead a widestring value from the stream.
ReadUnicodeStringpublicRead a Unicode string value.
SkipComponentpublicSkip till the end of the component.
SkipValuepublicSkip the current value.

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