[Overview][Resource strings][Constants][Types][Classes][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Base abstract resource writer class
Source position: resource.pp line 306
type TAbstractResourceWriter = class |
||
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 |
end; |
|
Base abstract resource writer class |
|
| | ||
TObject |
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. |
|
A collection of resources |
|
|
Base abstract resource class |
|
|
Base abstract resource reader class |
|
|
.res resource writer |
|
|
COFF resource writer |
|
|
ELF resource writer |
|
|
External file resource writer |