Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 19, 2007, 10:10:11 PM (16 years ago)
Author:
landauf
Message:
  • removed the "ClassHierarchy" manager-class and put its sole feature (bIsCreatingClassHierarchy_) directly into the Identifier.
  • added a dynamic_cast from OrxonoxClass to BaseObject to the Factory. OrxonoxClass is needed because several classes use Interfaces, but all classes are derived at least from BaseObject, so the cast will work.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchie/src/Factory.h

    r218 r219  
    88{
    99    class Identifier;
    10     class OrxonoxClass;
     10    class BaseObject;
    1111
    1212    class ClassFactory
    1313    {
    1414        public:
    15             static OrxonoxClass* fabricate(const std::string& name);
     15            static BaseObject* fabricate(const std::string& name);
    1616            static void add(const std::string& name, Identifier* identifier);
    1717
     
    2121            ~ClassFactory() {}
    2222
    23             static ClassFactory* pointer_;
     23            static ClassFactory* pointer_s;
    2424            std::map<std::string, Identifier*> identifierMap_;
    2525    };
Note: See TracChangeset for help on using the changeset viewer.