[Overview][Resource strings][Constants][Types][Classes][Index] Reference for unit 'resource' (#fcl-res)

TAbstractResourceWriter

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Base abstract resource writer class

Declaration

Source position: resource.pp line 305

type TAbstractResourceWriter = class end;

protected

  function GetTree();

  

Gets the internal resource tree of a TResources object

  function GetExtensions; virtual; abstract;

  

Returns the extensions the writer is registered for

  function GetDescription; virtual; abstract;

  

Returns the description of the writer

  procedure Write(); virtual; abstract;

  

Writes resources to a stream

public

  constructor Create; virtual; abstract;

  

Creates a new writer object

  property Extensions: string; [r]

  

The extensions of file types the writer is able to write

  property Description: string; [r]

  

The writer description

Inheritance

TAbstractResourceWriter

  

Base abstract resource writer class

|

TObject

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).

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

See also

TResources

  

A collection of resources

TAbstractResource

  

Base abstract resource class

TAbstractResourceReader

  

Base abstract resource reader class

TResResourceWriter

  

.res resource writer

TCoffResourceWriter

  

COFF resource writer

TElfResourceWriter

  

ELF resource writer

TExternalResourceWriter

  

External file resource writer


Documentation generated on: Nov 14 2015