Changeset 813 for code/branches/core/src/orxonox/core/CoreIncludes.h
- Timestamp:
- Feb 15, 2008, 4:31:58 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core/src/orxonox/core/CoreIncludes.h
r811 r813 52 52 #include "Debug.h" 53 53 54 55 // All needed macros 54 56 /** 55 57 @brief Intern macro, containing the common parts of RegisterObject and RegisterRootObject. … … 60 62 this->setIdentifier(orxonox::ClassManager<ClassName>::getIdentifier()->registerClass(this->getParents(), #ClassName, bRootClass)); \ 61 63 if (orxonox::Identifier::isCreatingHierarchy() && this->getParents()) \ 62 this->getParents()-> add(this->getIdentifier()); \64 this->getParents()->insert(this->getParents()->end(), this->getIdentifier()); \ 63 65 orxonox::ClassManager<ClassName>::getIdentifier()->addObject(this) 64 66 … … 69 71 #define InternRegisterRootObject(ClassName) \ 70 72 if (orxonox::Identifier::isCreatingHierarchy() && !this->getParents()) \ 71 this-> setParents(new orxonox::IdentifierList()); \73 this->createParents(); \ 72 74 InternRegisterObject(ClassName, true) 73 75
Note: See TracChangeset
for help on using the changeset viewer.