Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 12, 2015, 9:41:22 PM (10 years ago)
Author:
landauf
Message:

wrap Identifiers in a StaticallyInitializedInstance. doesn't do a lot at the moment

Location:
code/branches/core7/test/core/class
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/test/core/class/IdentifierClassHierarchyTest.cc

    r9659 r10360  
    135135                    registerClass("OrxonoxInterface", new ClassFactoryNoArgs<OrxonoxInterface>());
    136136                    registerClass("OrxonoxClass", new ClassFactoryNoArgs<OrxonoxClass>());
    137                     registerClass("BaseInterface1", static_cast<ClassFactory<BaseInterface1>*>(NULL), false).inheritsFrom(Class(OrxonoxInterface));
    138                     registerClass("BaseInterface2", static_cast<ClassFactory<BaseInterface2>*>(NULL), false).inheritsFrom(Class(OrxonoxInterface));
    139                     registerClass("Interface1", static_cast<ClassFactory<Interface1>*>(NULL), false).inheritsFrom(Class(BaseInterface1));
    140                     registerClass("Interface2", static_cast<ClassFactory<Interface2>*>(NULL), false).inheritsFrom(Class(BaseInterface2));
     137                    registerClass("BaseInterface1", static_cast<ClassFactory<BaseInterface1>*>(NULL), false)->inheritsFrom(Class(OrxonoxInterface));
     138                    registerClass("BaseInterface2", static_cast<ClassFactory<BaseInterface2>*>(NULL), false)->inheritsFrom(Class(OrxonoxInterface));
     139                    registerClass("Interface1", static_cast<ClassFactory<Interface1>*>(NULL), false)->inheritsFrom(Class(BaseInterface1));
     140                    registerClass("Interface2", static_cast<ClassFactory<Interface2>*>(NULL), false)->inheritsFrom(Class(BaseInterface2));
    141141                    registerClass("BaseClass", new ClassFactoryNoArgs<BaseClass>());
    142142                    registerClass("Class0", new ClassFactoryNoArgs<Class0>());
  • code/branches/core7/test/core/class/IdentifierExternalClassHierarchyTest.cc

    r9659 r10360  
    4646                    registerClass("Context", new ClassFactoryWithContext<Context>());
    4747                    registerClass("Listable", new ClassFactoryWithContext<Listable>());
    48                     registerClass("Interface", static_cast<ClassFactory<Interface>*>(NULL), false).inheritsFrom(Class(Identifiable));
     48                    registerClass("Interface", static_cast<ClassFactory<Interface>*>(NULL), false)->inheritsFrom(Class(Identifiable));
    4949                    registerClass("BaseClass", new ClassFactoryNoArgs<BaseClass>());
    5050                    registerClass("RealClass", new ClassFactoryNoArgs<RealClass>());
  • code/branches/core7/test/core/class/IdentifierSimpleClassHierarchyTest.cc

    r9659 r10360  
    5151                    registerClass("OrxonoxInterface", new ClassFactoryNoArgs<OrxonoxInterface>());
    5252                    registerClass("OrxonoxClass", new ClassFactoryNoArgs<OrxonoxClass>());
    53                     registerClass("Interface", static_cast<ClassFactory<Interface>*>(NULL), false).inheritsFrom(Class(OrxonoxInterface));
     53                    registerClass("Interface", static_cast<ClassFactory<Interface>*>(NULL), false)->inheritsFrom(Class(OrxonoxInterface));
    5454                    registerClass("BaseClass", new ClassFactoryNoArgs<BaseClass>());
    5555                    registerClass("RealClass", new ClassFactoryNoArgs<RealClass>());
Note: See TracChangeset for help on using the changeset viewer.