[132] | 1 | #ifndef _BaseObject_H__ |
---|
| 2 | #define _BaseObject_H__ |
---|
| 3 | |
---|
[197] | 4 | #include "IdentifierIncludes.h" |
---|
[132] | 5 | |
---|
[149] | 6 | namespace orxonox |
---|
| 7 | { |
---|
[162] | 8 | class BaseObject : virtual public OrxonoxClass |
---|
[132] | 9 | { |
---|
| 10 | public: |
---|
| 11 | BaseObject(); |
---|
[176] | 12 | virtual ~BaseObject(); |
---|
[132] | 13 | |
---|
[239] | 14 | inline bool isA(const Identifier* identifier) |
---|
[162] | 15 | { this->getIdentifier()->isA(identifier); } |
---|
[239] | 16 | inline bool isDirectlyA(const Identifier* identifier) |
---|
[172] | 17 | { this->getIdentifier()->isDirectlyA(identifier); } |
---|
[239] | 18 | inline bool isChildOf(const Identifier* identifier) |
---|
[162] | 19 | { this->getIdentifier()->isChildOf(identifier); } |
---|
[239] | 20 | inline bool isParentOf(const Identifier* identifier) |
---|
[162] | 21 | { this->getIdentifier()->isParentOf(identifier); } |
---|
[132] | 22 | |
---|
[242] | 23 | inline bool isA(const SubclassIdentifier<class B>* identifier) |
---|
[197] | 24 | { this->getIdentifier()->isA(identifier->getIdentifier()); } |
---|
[242] | 25 | inline bool isDirectlyA(const SubclassIdentifier<class B>* identifier) |
---|
[197] | 26 | { this->getIdentifier()->isDirectlyA(identifier->getIdentifier()); } |
---|
[242] | 27 | inline bool isChildOf(const SubclassIdentifier<class B>* identifier) |
---|
[197] | 28 | { this->getIdentifier()->isChildOf(identifier->getIdentifier()); } |
---|
[242] | 29 | inline bool isParentOf(const SubclassIdentifier<class B>* identifier) |
---|
[197] | 30 | { this->getIdentifier()->isParentOf(identifier->getIdentifier()); } |
---|
[132] | 31 | |
---|
[242] | 32 | inline bool isA(const SubclassIdentifier<class B> identifier) |
---|
[197] | 33 | { this->getIdentifier()->isA(identifier.getIdentifier()); } |
---|
[242] | 34 | inline bool isDirectlyA(const SubclassIdentifier<class B> identifier) |
---|
[197] | 35 | { this->getIdentifier()->isDirectlyA(identifier.getIdentifier()); } |
---|
[242] | 36 | inline bool isChildOf(const SubclassIdentifier<class B> identifier) |
---|
[197] | 37 | { this->getIdentifier()->isChildOf(identifier.getIdentifier()); } |
---|
[242] | 38 | inline bool isParentOf(const SubclassIdentifier<class B> identifier) |
---|
[197] | 39 | { this->getIdentifier()->isParentOf(identifier.getIdentifier()); } |
---|
[220] | 40 | |
---|
[239] | 41 | inline bool isA(const OrxonoxClass* object) |
---|
[197] | 42 | { this->getIdentifier()->isA(object->getIdentifier()); } |
---|
[239] | 43 | inline bool isDirectlyA(const OrxonoxClass* object) |
---|
[220] | 44 | { this->getIdentifier()->isDirectlyA(object->getIdentifier()); } |
---|
[239] | 45 | inline bool isChildOf(const OrxonoxClass* object) |
---|
[220] | 46 | { this->getIdentifier()->isChildOf(object->getIdentifier()); } |
---|
[239] | 47 | inline bool isParentOf(const OrxonoxClass* object) |
---|
[220] | 48 | { this->getIdentifier()->isParentOf(object->getIdentifier()); } |
---|
| 49 | |
---|
[221] | 50 | std::string name_; // test |
---|
| 51 | |
---|
[132] | 52 | }; |
---|
[149] | 53 | } |
---|
[132] | 54 | |
---|
| 55 | #endif |
---|