[fpc-pascal] Run Time Type Info - are the type names of all classes defined in a unit stored in the RTTI?
pascaldragon at googlemail.com
Thu Mar 2 07:52:55 CET 2017
Am 02.03.2017 06:30 schrieb "Dennis Poon" <dennis at avidsoft.com.hk>:
> Sven Barth wrote:
>> Am 01.03.2017 11:53 schrieb "Dennis" <dec12 at avidsoft.com.hk <mailto:
dec12 at avidsoft.com.hk>>:
>> > Programmatically, I want to make a list of all Classes defined in the
>> > Is this info stored in the RTTI or anywhere else?
>> This info is not yet available, but will be in the future.
> Ideally, with this feature, in the initialization section of the unit, I
can 'register' all the classes defined in the unit into a
> That way, when loading objects from file, I can use the dictionary to
lookup the actual TClass with the stored Classname, to recreate the object
For now you'll simply have to do it manually for each class...
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal