RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Classes.TIdentMapEntry Record

TIdentMapEntry is used to perform ident string to integer value mapping.

Pascal
TIdentMapEntry = record
  Value: Integer;
  Name: String;
end;
C++
struct TIdentMapEntry {
  int Value;
  AnsiString Name;
};

Classes

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!