Sign in Join
FPDoc Onlineexperiment

TAbstractResourceWriter class

In unit resource

Base abstract resource writer class

Declaration

pascal
TAbstractResourceWriter = class

Descends from it: TCoffResourceWriter TElfResourceWriter TExternalResourceWriter TMachOResourceWriter TResResourceWriter

Description

This is the base class that represents a resource writer.

A resource writer is an object whose job is to write all resources contained in a TResources object to a stream in a specific format.

Typically, a TResources object invokes Write method of the resource writer when it wants the writer to write data to a stream.

Usually each resource writer registers itself with TResources class in the initialization section of the unit in which it is implemented: this way a TResources object can find it when it is asked to write itself to a file, and no writer was specified (the writer is found based on the extension of the file to write to).

An object of this class should never be directly instantiated: use a descendant class instead.

See also

Properties

ExtensionspublicThe extensions of file types the writer is able to write
DescriptionpublicThe writer description

Methods

GetTreeprotectedGets the internal resource tree of a TResources object
GetExtensionsprotectedReturns the extensions the writer is registered for
GetDescriptionprotectedReturns the description of the writer
WriteprotectedWrites resources to a stream
CreatepublicCreates a new writer object

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