1 | #ifndef _BaseObject_H__ |
---|
2 | #define _BaseObject_H__ |
---|
3 | |
---|
4 | #include "IdentifierIncludes.h" |
---|
5 | |
---|
6 | namespace orxonox |
---|
7 | { |
---|
8 | class BaseObject : virtual public OrxonoxClass |
---|
9 | { |
---|
10 | public: |
---|
11 | BaseObject(); |
---|
12 | virtual ~BaseObject(); |
---|
13 | |
---|
14 | inline bool isA(const Identifier* identifier) |
---|
15 | { this->getIdentifier()->isA(identifier); } |
---|
16 | inline bool isDirectlyA(const Identifier* identifier) |
---|
17 | { this->getIdentifier()->isDirectlyA(identifier); } |
---|
18 | inline bool isChildOf(const Identifier* identifier) |
---|
19 | { this->getIdentifier()->isChildOf(identifier); } |
---|
20 | inline bool isDirectChildOf(const Identifier* identifier) |
---|
21 | { this->getIdentifier()->isDirectChildOf(identifier); } |
---|
22 | inline bool isParentOf(const Identifier* identifier) |
---|
23 | { this->getIdentifier()->isParentOf(identifier); } |
---|
24 | inline bool isDirectParentOf(const Identifier* identifier) |
---|
25 | { this->getIdentifier()->isDirectParentOf(identifier); } |
---|
26 | |
---|
27 | inline bool isA(const SubclassIdentifier<class B>* identifier) |
---|
28 | { this->getIdentifier()->isA(identifier->getIdentifier()); } |
---|
29 | inline bool isDirectlyA(const SubclassIdentifier<class B>* identifier) |
---|
30 | { this->getIdentifier()->isDirectlyA(identifier->getIdentifier()); } |
---|
31 | inline bool isChildOf(const SubclassIdentifier<class B>* identifier) |
---|
32 | { this->getIdentifier()->isChildOf(identifier->getIdentifier()); } |
---|
33 | inline bool isDirectChildOf(const SubclassIdentifier<class B>* identifier) |
---|
34 | { this->getIdentifier()->isDirectChildOf(identifier->getIdentifier()); } |
---|
35 | inline bool isParentOf(const SubclassIdentifier<class B>* identifier) |
---|
36 | { this->getIdentifier()->isParentOf(identifier->getIdentifier()); } |
---|
37 | inline bool isDirectParentOf(const SubclassIdentifier<class B>* identifier) |
---|
38 | { this->getIdentifier()->isDirectParentOf(identifier->getIdentifier()); } |
---|
39 | |
---|
40 | inline bool isA(const SubclassIdentifier<class B> identifier) |
---|
41 | { this->getIdentifier()->isA(identifier.getIdentifier()); } |
---|
42 | inline bool isDirectlyA(const SubclassIdentifier<class B> identifier) |
---|
43 | { this->getIdentifier()->isDirectlyA(identifier.getIdentifier()); } |
---|
44 | inline bool isChildOf(const SubclassIdentifier<class B> identifier) |
---|
45 | { this->getIdentifier()->isChildOf(identifier.getIdentifier()); } |
---|
46 | inline bool isDirectChildOf(const SubclassIdentifier<class B> identifier) |
---|
47 | { this->getIdentifier()->isDirectChildOf(identifier.getIdentifier()); } |
---|
48 | inline bool isParentOf(const SubclassIdentifier<class B> identifier) |
---|
49 | { this->getIdentifier()->isParentOf(identifier.getIdentifier()); } |
---|
50 | inline bool isDirectParentOf(const SubclassIdentifier<class B> identifier) |
---|
51 | { this->getIdentifier()->isDirectParentOf(identifier.getIdentifier()); } |
---|
52 | |
---|
53 | inline bool isA(const OrxonoxClass* object) |
---|
54 | { this->getIdentifier()->isA(object->getIdentifier()); } |
---|
55 | inline bool isDirectlyA(const OrxonoxClass* object) |
---|
56 | { this->getIdentifier()->isDirectlyA(object->getIdentifier()); } |
---|
57 | inline bool isChildOf(const OrxonoxClass* object) |
---|
58 | { this->getIdentifier()->isChildOf(object->getIdentifier()); } |
---|
59 | inline bool isDirectChildOf(const OrxonoxClass* object) |
---|
60 | { this->getIdentifier()->isDirectChildOf(object->getIdentifier()); } |
---|
61 | inline bool isParentOf(const OrxonoxClass* object) |
---|
62 | { this->getIdentifier()->isParentOf(object->getIdentifier()); } |
---|
63 | inline bool isDirectParentOf(const OrxonoxClass* object) |
---|
64 | { this->getIdentifier()->isDirectParentOf(object->getIdentifier()); } |
---|
65 | |
---|
66 | std::string name_; // test |
---|
67 | |
---|
68 | }; |
---|
69 | } |
---|
70 | |
---|
71 | #endif |
---|