Sven Barth wrote:

Am 01.03.2017 11:53 schrieb "Dennis" <de...@avidsoft.com.hk <mailto:de...@avidsoft.com.hk>>:
>
> Programmatically, I want to make a list of all Classes defined in the unit.
> Is this info stored in the RTTI or anywhere else?

This info is not yet available, but will be in the future.


Thanks.

Ideally, with this feature, in the initialization section of the unit, I can 'register' all the classes defined in the unit into a dictionary<String, TClass>. 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 stored.

Dennis
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to