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

# TGenericResource

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

Generic resource class

## Declaration

Source position: resource.pp line 186

`type TGenericResource = class(TAbstractResource)`
`protected`
`function GetType; override;`
`function GetName; override;`
`function ChangeDescTypeAllowed(); override;`
`function ChangeDescValueAllowed(); override;`
`procedure NotifyResourcesLoaded; override;`
`public`
`constructor Create(); override;`
`destructor Destroy; override;`
`procedure UpdateRawData; override;`
`end;`

## Inheritance

`TGenericResource` |  | Generic resource class
`TAbstractResource` |  | Base abstract resource class
`TObject`

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

## See also

TResourceFactory.CreateResource |  | Creates a new resource

Documentation generated on: May 14 2021