[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 isDirectChildOf(const Identifier* identifier) |
---|
[162] | 21 | { this->getIdentifier()->isDirectChildOf(identifier); } |
---|
[239] | 22 | inline bool isParentOf(const Identifier* identifier) |
---|
[162] | 23 | { this->getIdentifier()->isParentOf(identifier); } |
---|
[239] | 24 | inline bool isDirectParentOf(const Identifier* identifier) |
---|
[162] | 25 | { this->getIdentifier()->isDirectParentOf(identifier); } |
---|
[132] | 26 | |
---|
[239] | 27 | inline bool isA(const BaseIdentifier<class B>* identifier) |
---|
[197] | 28 | { this->getIdentifier()->isA(identifier->getIdentifier()); } |
---|
[239] | 29 | inline bool isDirectlyA(const BaseIdentifier<class B>* identifier) |
---|
[197] | 30 | { this->getIdentifier()->isDirectlyA(identifier->getIdentifier()); } |
---|
[239] | 31 | inline bool isChildOf(const BaseIdentifier<class B>* identifier) |
---|
[197] | 32 | { this->getIdentifier()->isChildOf(identifier->getIdentifier()); } |
---|
[239] | 33 | inline bool isDirectChildOf(const BaseIdentifier<class B>* identifier) |
---|
[197] | 34 | { this->getIdentifier()->isDirectChildOf(identifier->getIdentifier()); } |
---|
[239] | 35 | inline bool isParentOf(const BaseIdentifier<class B>* identifier) |
---|
[197] | 36 | { this->getIdentifier()->isParentOf(identifier->getIdentifier()); } |
---|
[239] | 37 | inline bool isDirectParentOf(const BaseIdentifier<class B>* identifier) |
---|
[197] | 38 | { this->getIdentifier()->isDirectParentOf(identifier->getIdentifier()); } |
---|
[132] | 39 | |
---|
[239] | 40 | inline bool isA(const BaseIdentifier<class B> identifier) |
---|
[197] | 41 | { this->getIdentifier()->isA(identifier.getIdentifier()); } |
---|
[239] | 42 | inline bool isDirectlyA(const BaseIdentifier<class B> identifier) |
---|
[197] | 43 | { this->getIdentifier()->isDirectlyA(identifier.getIdentifier()); } |
---|
[239] | 44 | inline bool isChildOf(const BaseIdentifier<class B> identifier) |
---|
[197] | 45 | { this->getIdentifier()->isChildOf(identifier.getIdentifier()); } |
---|
[239] | 46 | inline bool isDirectChildOf(const BaseIdentifier<class B> identifier) |
---|
[197] | 47 | { this->getIdentifier()->isDirectChildOf(identifier.getIdentifier()); } |
---|
[239] | 48 | inline bool isParentOf(const BaseIdentifier<class B> identifier) |
---|
[197] | 49 | { this->getIdentifier()->isParentOf(identifier.getIdentifier()); } |
---|
[239] | 50 | inline bool isDirectParentOf(const BaseIdentifier<class B> identifier) |
---|
[197] | 51 | { this->getIdentifier()->isDirectParentOf(identifier.getIdentifier()); } |
---|
[220] | 52 | |
---|
[239] | 53 | inline bool isA(const OrxonoxClass* object) |
---|
[197] | 54 | { this->getIdentifier()->isA(object->getIdentifier()); } |
---|
[239] | 55 | inline bool isDirectlyA(const OrxonoxClass* object) |
---|
[220] | 56 | { this->getIdentifier()->isDirectlyA(object->getIdentifier()); } |
---|
[239] | 57 | inline bool isChildOf(const OrxonoxClass* object) |
---|
[220] | 58 | { this->getIdentifier()->isChildOf(object->getIdentifier()); } |
---|
[239] | 59 | inline bool isDirectChildOf(const OrxonoxClass* object) |
---|
[220] | 60 | { this->getIdentifier()->isDirectChildOf(object->getIdentifier()); } |
---|
[239] | 61 | inline bool isParentOf(const OrxonoxClass* object) |
---|
[220] | 62 | { this->getIdentifier()->isParentOf(object->getIdentifier()); } |
---|
[239] | 63 | inline bool isDirectParentOf(const OrxonoxClass* object) |
---|
[220] | 64 | { this->getIdentifier()->isDirectParentOf(object->getIdentifier()); } |
---|
| 65 | |
---|
[221] | 66 | std::string name_; // test |
---|
| 67 | |
---|
[132] | 68 | }; |
---|
[149] | 69 | } |
---|
[132] | 70 | |
---|
| 71 | #endif |
---|