RAD Studio VCL Reference
|
TFiler is the abstract base class for reader and writer objects, which are used for loading and saving components and their properties.
TFiler = class(TObject);
class TFiler : public TObject;
Classes
TFiler works with stream and component objects. It handles the internal mechanics of the streaming system that reads and writes components and their associated data. This streaming system is the mechanism by which the IDE saves components to or reads components from disk (in form files) and by which it saves and restores temporary in-memory images of components.
TFiler has two descendants, TReader and TWriter, that implement the methods introduced by TFiler. The filer type is used as a parameter to component methods that can require either a reader or writer object, depending on whether the data is read from or written to a stream. Every filer has an associated stream that is passed as a parameter to its constructor. Filer objects are usually created by the stream that becomes associated with the filer.
TFiler properties provide support for managing the streaming of owned components. Filer objects read and write the properties of components to and from a stream. Filer objects provide buffering of data to speed read and write operations.
TFiler introduces abstract methods that are customized by its descendant reader and writer objects. These include methods that enable components to load and save hidden or complex data as if it was the value of a published property.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|