LResources unit
Maintains a global list of Lazarus resources, and provides methods and types used to stream components.
lresources.pp maintains and stores all standard Lazarus
resources in the global
LazarusResources list and
provides methods and types for component streaming.
A Lazarus resource is streamed as an UTF-8 string, with a name, value and value type.
Lazarus resources are normally included via an include directive in the
initialization part of a unit. To create such include files use the
BinaryToLazarusResourceCode procedure.
To create an LRS file from an LFM file use the LFMtoLRSfile
function which transforms the LFM text to binary format and stores it as
Lazarus resource include file.
Author: Mattias Gaertner
lresources.pp is part of the Lazarus Component Library
(
LCL).
Classes and records
TAbstractTranslator | class | Abstract base class for translators used in the LCL. |
TCustomLazComponentQueue | class | A queue to stream components, used for multi-threading or network. |
TLazarusResourceStream | class | Helper class for streaming resources (read only). |
TLazComponentQueue | class | Publishes property from the ancestor class. |
TLResource | class | Describes a Lazarus resource stored in TLResourceList. |
TLResourceList | class | Container class used for Lazarus resource descriptions. |
TLRSObjectReader | class | Reader for resource streams. |
TLRSObjectWriter | class | Object writer for Lazarus Resource Streams. |
TLRSORStackItem | record | Stack item for the nested resource reader. |
TLRSOWStackItem | record | Stack item for the nested resource writer. |
TPropertiesToSkip | class | Implements a list used to store properties which are skipped during LCL streaming. |
TPropertyToSkip | record | Contains information about a property omitted from LCL component streaming. |
Procedures and functions
Types
PLRSORStackItem | type | Stack item for the nested resource reader. |
PLRSOWStackItem | type | Stack item for the nested resource writer. |
PRemovedProperty | type | Contains information about a property omitted from LCL component streaming. |
TLazObjectWriterString | type | Compiler version-specific alias for String values used in TLRSObjectWriter. |
TLRSItemType | enumeration | Stack item type for the nested resource reader/writer. |
TLRSObjectReaderClass | type | Reader for resource streams. |
TLRSObjectWriterClass | type | Object writer for Lazarus Resource Streams. |
TLRSOWStackItemState | enumeration | Tracking what already has been stored or written. |
TLRSStreamOriginalFormat | enumeration | Represents the LRS stream format offered as the original content for conversion routines like LRSObjectToText and LRSObjectResToText. |
Constants
LRSComment | constant | Text of the "automatically generated..." warning in resource files. |
Variables
LazarusResources | variable | The list with all of the loaded standard resources. |
LRSObjectReaderClass | variable | Class type for Lazarus Object Reader instances. |
LRSObjectWriterClass | variable | Class type for Lazarus Object Writer instances. |
LRSTranslator | variable | Variable with the default translator used in CreateLRSReader. |
PropertiesToSkip | variable | Unit global variable with all of the registered skipped properties. |
Uses
ClassesSysUtilsTypesRtlConstsTypInfoVariantsLCLStrConstsLazConfigStorageFPCAddsDynQueueLazUTF8LazLoggerBaseLazTracerLazUtilitiesProjResProcProjResConvert
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
