Get registered types and create an object based in the registered typename (Like object factories)in Reflect?

9 views
Skip to first unread message

Christopher Sosa

unread,
Mar 30, 2016, 11:38:26 AM3/30/16
to Helium Project
Theres an way to get the registered types in Reflect? like in AssetType iterator does?, like this snippet:

            for ( AssetType::ConstIterator iter = AssetType::GetTypeBegin();
                iter
!= AssetType::GetTypeEnd(); ++iter)
           
{
                HELIUM_TRACE
(
                   
TraceLevels::Info,
                    TXT
( " - %s\n" ),
                   
*iter->GetName() );
           
}

i want to list the registered components (From the Framework module) available from Reflect, and create one of those based in the name or meta object of the component. Thanks.

Geoff Evans

unread,
Mar 30, 2016, 12:21:38 PM3/30/16
to helium...@googlegroups.com
The master dictionary of types is here, keyed by crc:


It doesn't have any iterators, though.  If you have the crc of a type you can fetch it with an accessor, or add some iterators.

--
You received this message because you are subscribed to the Google Groups "Helium Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to heliumprojec...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Geoff Evans
Reply all
Reply to author
Forward
0 new messages