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(Identifier* identifier) |
---|
15 | { return this->getIdentifier()->isA(identifier); } |
---|
16 | inline bool isDirectlyA(Identifier* identifier) |
---|
17 | { return this->getIdentifier()->isDirectlyA(identifier); } |
---|
18 | inline bool isChildOf(Identifier* identifier) |
---|
19 | { return this->getIdentifier()->isChildOf(identifier); } |
---|
20 | inline bool isDirectChildOf(Identifier* identifier) |
---|
21 | { return this->getIdentifier()->isDirectChildOf(identifier); } |
---|
22 | inline bool isParentOf(Identifier* identifier) |
---|
23 | { return this->getIdentifier()->isParentOf(identifier); } |
---|
24 | inline bool isDirectParentOf(Identifier* identifier) |
---|
25 | { return this->getIdentifier()->isDirectParentOf(identifier); } |
---|
26 | |
---|
27 | inline bool isA(BaseIdentifier<class B>* identifier) |
---|
28 | { return this->getIdentifier()->isA(identifier->getIdentifier()); } |
---|
29 | inline bool isDirectlyA(BaseIdentifier<class B>* identifier) |
---|
30 | { return this->getIdentifier()->isDirectlyA(identifier->getIdentifier()); } |
---|
31 | inline bool isChildOf(BaseIdentifier<class B>* identifier) |
---|
32 | { return this->getIdentifier()->isChildOf(identifier->getIdentifier()); } |
---|
33 | inline bool isDirectChildOf(BaseIdentifier<class B>* identifier) |
---|
34 | { return this->getIdentifier()->isDirectChildOf(identifier->getIdentifier()); } |
---|
35 | inline bool isParentOf(BaseIdentifier<class B>* identifier) |
---|
36 | { return this->getIdentifier()->isParentOf(identifier->getIdentifier()); } |
---|
37 | inline bool isDirectParentOf(BaseIdentifier<class B>* identifier) |
---|
38 | { return this->getIdentifier()->isDirectParentOf(identifier->getIdentifier()); } |
---|
39 | |
---|
40 | inline bool isA(BaseIdentifier<class B> identifier) |
---|
41 | { return this->getIdentifier()->isA(identifier.getIdentifier()); } |
---|
42 | inline bool isDirectlyA(BaseIdentifier<class B> identifier) |
---|
43 | { return this->getIdentifier()->isDirectlyA(identifier.getIdentifier()); } |
---|
44 | inline bool isChildOf(BaseIdentifier<class B> identifier) |
---|
45 | { return this->getIdentifier()->isChildOf(identifier.getIdentifier()); } |
---|
46 | inline bool isDirectChildOf(BaseIdentifier<class B> identifier) |
---|
47 | { return this->getIdentifier()->isDirectChildOf(identifier.getIdentifier()); } |
---|
48 | inline bool isParentOf(BaseIdentifier<class B> identifier) |
---|
49 | { return this->getIdentifier()->isParentOf(identifier.getIdentifier()); } |
---|
50 | inline bool isDirectParentOf(BaseIdentifier<class B> identifier) |
---|
51 | { return this->getIdentifier()->isDirectParentOf(identifier.getIdentifier()); } |
---|
52 | /* |
---|
53 | inline bool isA(OrxonoxClass* object) |
---|
54 | { return this->getIdentifier()->isA(object->getIdentifier()); } |
---|
55 | inline bool isDirectlyA(OrxonoxClass* object) |
---|
56 | { return this->getIdentifier()->isDirectlyA(object->getIdentifier); } |
---|
57 | inline bool isChildOf(OrxonoxClass* object) |
---|
58 | { return this->getIdentifier()->isChildOf(object->getIdentifier); } |
---|
59 | inline bool isDirectChildOf(OrxonoxClass* object) |
---|
60 | { return this->getIdentifier()->isDirectChildOf(object->getIdentifier); } |
---|
61 | inline bool isParentOf(OrxonoxClass* object) |
---|
62 | { return this->getIdentifier()->isParentOf(object->getIdentifier); } |
---|
63 | inline bool isDirectParentOf(OrxonoxClass* object) |
---|
64 | { return this->getIdentifier()->isDirectParentOf(object->getIdentifier); } |
---|
65 | */ |
---|
66 | |
---|
67 | }; |
---|
68 | } |
---|
69 | |
---|
70 | #endif |
---|