Declaration¶
Source position: resource.pp line 193
type
TGenericResource = class(TAbstractResource)
protected
function GetType : TResourceDesc;
function GetName : TResourceDesc;
function ChangeDescTypeAllowed : Boolean;
function ChangeDescValueAllowed : Boolean;
procedure NotifyResourcesLoaded;
public
constructor Create;
destructor Destroy;
procedure UpdateRawData;
end;
Inheritance¶
Description¶
This class represents a generic resource.
It is suitable to use in all situations where a higher level class is not needed (e.g. the resource raw data is made of arbitrary data) or when total low-level control is desirable.
This class is also the default one that is used by TResourceFactory when it finds no class matching the given type.
Methods¶
| Member | Visibility | Description |
|---|---|---|
| ChangeDescTypeAllowed | protected | |
| ChangeDescValueAllowed | protected | |
| Create | public | |
| Destroy | public | |
| GetName | protected | |
| GetType | protected | |
| NotifyResourcesLoaded | protected | |
| UpdateRawData | public |
See also¶
| Name | Description |
|---|---|
| TResourceFactory.CreateResource | Creates a new resource |