Sign in Join
FPDoc Onlineexperiment

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

TAbstractTranslatorclassAbstract base class for translators used in the LCL.
TCustomLazComponentQueueclassA queue to stream components, used for multi-threading or network.
TLazarusResourceStreamclassHelper class for streaming resources (read only).
TLazComponentQueueclassPublishes property from the ancestor class.
TLResourceclassDescribes a Lazarus resource stored in TLResourceList.
TLResourceListclassContainer class used for Lazarus resource descriptions.
TLRSObjectReaderclassReader for resource streams.
TLRSObjectWriterclassObject writer for Lazarus Resource Streams.
TLRSORStackItemrecordStack item for the nested resource reader.
TLRSOWStackItemrecordStack item for the nested resource writer.
TPropertiesToSkipclassImplements a list used to store properties which are skipped during LCL streaming.
TPropertyToSkiprecordContains information about a property omitted from LCL component streaming.

Procedures and functions

BinaryToLazarusResourceCodeprocedure
CompareComponentsfunction
CompareMemStreamsfunction
ConvertEndianBigDoubleToLRSExtendedprocedure
CreateLFMFilefunction
CreateLRSReaderfunction
CreateLRSWriterfunction
DefineRectPropertyprocedure
FindLFMClassNamefunction
FindResourceLFMfunction
FloatToLFMStrfunction
FormDataToTextprocedure
GetClassNameFromLRSStreamfunction
GetComponentInfoFromLRSStreamprocedure
InitLazResourceComponentfunction
InitResourceComponentfunction
LFMtoLRSfilefunction
LFMtoLRSstreamfunction
LoadComponentFromConfigprocedure
LRSObjectBinaryToTextprocedure
LRSObjectResourceToTextprocedure
LRSObjectResToTextprocedure
LRSObjectTextToBinaryprocedure
LRSObjectToTextprocedure
ReadComponentFromBinaryStreamprocedure
ReadComponentFromTextStreamprocedure
ReadLFMHeaderprocedure
ReadLFMHeaderFromFilefunctionReads the LFM header from the specified file name.
ReadLRSBytefunction
ReadLRSCardinalfunction
ReadLRSCurrencyfunction
ReadLRSDoublefunction
ReadLRSEndianLittleExtendedAsDoublefunction
ReadLRSExtendedfunction
ReadLRSInt64function
ReadLRSInt64MBfunction
ReadLRSIntegerfunction
ReadLRSShortIntfunction
ReadLRSSinglefunction
ReadLRSSmallIntfunction
ReadLRSValueTypefunction
ReadLRSWideStringfunction
ReadLRSWordfunction
RegisterprocedureRegisters the component TLazComponentQueue.
RegisterPropertyToSkipprocedure
ReverseByteOrderInWordsprocedure
ReverseBytesprocedure
SameLFMTypeNamefunctionIndicates whether the specified LFM resource matches the specified unit and type names.
SaveComponentToConfigprocedure
TestFormStreamFormatfunction
WriteComponentAsBinaryToStreamprocedure
WriteComponentAsTextToStreamprocedure
WriteLRS10BytesReversedprocedure
WriteLRS4BytesReversedprocedure
WriteLRS8BytesReversedprocedure
WriteLRSCardinalprocedure
WriteLRSCurrencyprocedure
WriteLRSDoubleprocedure
WriteLRSDoubleAsExtendedprocedure
WriteLRSEndianBigDoubleAsEndianLittleExtendedprocedure
WriteLRSExtendedprocedure
WriteLRSInt64procedure
WriteLRSInt64MBprocedureWrites an integer value, using the smallest possible representation.
WriteLRSIntegerprocedure
WriteLRSNullprocedureWrites the specified number of Null characters to a TStream instance.
WriteLRSReversedWordprocedure
WriteLRSReversedWordsprocedure
WriteLRSSingleprocedure
WriteLRSSmallIntprocedure
WriteLRSWideStringContentprocedure
WriteLRSWordprocedureWrites a Word value to the specified resource stream.

Types

PLRSORStackItemtypeStack item for the nested resource reader.
PLRSOWStackItemtypeStack item for the nested resource writer.
PRemovedPropertytypeContains information about a property omitted from LCL component streaming.
TLazObjectWriterStringtypeCompiler version-specific alias for String values used in TLRSObjectWriter.
TLRSItemTypeenumerationStack item type for the nested resource reader/writer.
TLRSObjectReaderClasstypeReader for resource streams.
TLRSObjectWriterClasstypeObject writer for Lazarus Resource Streams.
TLRSOWStackItemStateenumerationTracking what already has been stored or written.
TLRSStreamOriginalFormatenumerationRepresents the LRS stream format offered as the original content for conversion routines like LRSObjectToText and LRSObjectResToText.

Constants

LRSCommentconstantText of the "automatically generated..." warning in resource files.

Variables

LazarusResourcesvariableThe list with all of the loaded standard resources.
LRSObjectReaderClassvariableClass type for Lazarus Object Reader instances.
LRSObjectWriterClassvariableClass type for Lazarus Object Writer instances.
LRSTranslatorvariableVariable with the default translator used in CreateLRSReader.
PropertiesToSkipvariableUnit global variable with all of the registered skipped properties.

Uses

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.