TResourceFile

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

Resource file

Declaration

Source position: objects.pp line 534

Type
  TResourceFile = object (TObject)
    Stream : PStream;
    Modified : Boolean;
    constructor Init(AStream: PStream);
    destructor Done;  Virtual;
    function Count : Sw_Integer;
    function KeyAt(I: Sw_Integer) : string;
    function Get(Key: string) : PObject;
    function SwitchTo(AStream: PStream; Pack: Boolean) : PStream;
    procedure Flush;
    procedure Delete(Key: string);
    procedure Put(Item: PObject; Key: string);
  private
    BasePos : LongInt;
    IndexPos : LongInt;
    Index : TResourceCollection;
  end
  ;

Description

TResourceFile represents the resources in a binary file image.

Members

Member Type Visibility Description
BasePos Field private
Count Method default Number of resources in the file
Delete Method default Delete a resource from the file
Done Method default Destroy the instance and remove it from memory.
Flush Method default Writes the resources to the stream.
Get Method default Return a resource by key name.
Index Field private
IndexPos Field private
Init Method default Instantiate a new instance.
KeyAt Method default Return the key of the item at a certain position.
Modified Field default Have resources changed ?
Put Method default Set a resource by key name.
Stream Field default Actual file stream
SwitchTo Method default Write resources to a new stream.

Inheritance

Class Description
TResourceFile Resource file

results matching ""

    No results matching ""