TAbstractResourceReader class
Base abstract resource reader class
Declaration
TAbstractResourceReader = classDescends from it: TCoffResourceReader TDfmResourceReader TElfResourceReader TExternalResourceReader TMachOResourceReader TResResourceReader TWinPEImageResourceReader
Description
This is the base class that represents a resource reader.
A resource reader is an object whose job is to populate a TResources object with resources read from a stream in a specific format.
Typically, a TResources object invokes CheckMagic method of the resource reader when it's searching for a reader able to read a certain stream, and Load method when it wants the reader to read data from the stream.
Usually each resource reader 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 probing a stream that is to be read.
See also
- TResources
- TAbstractResource
- TAbstractResourceWriter
- TResResourceReader
- TCoffResourceReader
- TWinPEResourceReader
- TElfResourceReader
- TExternalResourceReader
- TDfmResourceReader
Properties
Extensions | public | The extensions of file types the reader is able to read |
Description | public | The reader description |
Methods
SetDataSize | protected | Protected method to let a reader set a resource DataSize property |
SetHeaderSize | protected | Protected method to let a reader set a resource HeaderSize property |
SetDataOffset | protected | Protected method to let a reader set a resource DataOffset property |
SetRawData | protected | Protected method to let a reader set a resource RawData property |
CallSubReaderLoad | protected | Calls another reader's Load method |
AddNoTree | protected | Adds a resource without updating the internal tree |
GetTree | protected | Gets the internal resource tree of a TResources object |
GetExtensions | protected | Returns the extensions the reader is registered for |
GetDescription | protected | Returns the description of the reader |
Load | protected | Loads resources from a stream |
CheckMagic | protected | Checks whether a stream is in a format the reader recognizes |
Create | public | Creates a new reader object |
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
