System.Classes.TIdentMapEntry
Delphi
TIdentMapEntry = record
C++
struct DECLSPEC_DRECORD TIdentMapEntry
{
public:
int Value;
System::UnicodeString Name;
};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
record struct |
public | System.Classes.pas System.Classes.hpp |
System.Classes | System.Classes |
Description
TIdentMapEntry is used to perform ident string to integer value mapping.
The TIdentMapEntry type declares a record of two fields. Name gives the ident name as a string. Value gives the integer value of this ident.
RegisterIntegerConsts function registers pairs of ident strings and their corresponding values. It uses IdentToInt and IntToIdent to perform the mappings between the ident names and their values.
These routines in turn use TIdentMapEntry arrays to hold these mappings.
For example, the Graphics unit uses TIdentMapEntry internally to hold the mapping of color names to integer values, such as 'clMaroon' to $000080.