JCL Help:JclGenerateEnumTypeBasedOn
From Project JEDI Wiki
Jump to navigationJump to searchJCL Help: JclGenerateEnumTypeBasedOn Function
Search in JCL Help
Search in all projects
Summary
Generates the RTTI structure for a new enumeration base type based on an existing enumeration.
Pascal
function JclGenerateEnumTypeBasedOn(const TypeName: ShortString; BaseType: PTypeInfo; const PrefixCut: Byte): PTypeInfo;
Parameters
Parameters | Description |
const TypeName: ShortString | Name of the newly generated RTTI. |
BaseType: PTypeInfo | Pointer to RTTI of enumeration type to base the new type on. The pointer can be obtained from a call to System.TypeInfo(ordinal type), JclGenerateEnum* or JclGenerateSubRange. |
const PrefixCut: Byte | Number of characters to skip from the left. Additionally this value can be set to PREFIX_CUT_LOWERCASE (skip all leading lowercase characters) or PREFIX_CUT_EQUAL (skip all common leading characters). |
Return Value
The return value is a pointer to the RTTI info.
Description
JclGenerateEnumTypeBasedOn generates the RTTI structure for a new enumeration type, based on an existing enumeration.
About
Unit
Donator
Marcel Bestebroer
Notes
All generated types are stored in a list and get freed on finalization of the JclRTTI unit. Optionally you can use RemoveTypeInfo to remove a specific type.
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page