Last change
on this file since 192 was
176,
checked in by landauf, 17 years ago
|
started to implement BaseIdentifier<class B> template
|
File size:
1.2 KB
|
Line | |
---|
1 | #ifndef _BaseObject_H__ |
---|
2 | #define _BaseObject_H__ |
---|
3 | |
---|
4 | #include "ClassHierarchy.h" |
---|
5 | #include "OrxonoxClass.h" |
---|
6 | |
---|
7 | namespace orxonox |
---|
8 | { |
---|
9 | class BaseObject : virtual public OrxonoxClass |
---|
10 | { |
---|
11 | public: |
---|
12 | BaseObject(); |
---|
13 | virtual ~BaseObject(); |
---|
14 | |
---|
15 | inline bool isA(Identifier* identifier) |
---|
16 | { this->getIdentifier()->isA(identifier); } |
---|
17 | inline bool isDirectlyA(Identifier* identifier) |
---|
18 | { this->getIdentifier()->isDirectlyA(identifier); } |
---|
19 | inline bool isChildOf(Identifier* identifier) |
---|
20 | { this->getIdentifier()->isChildOf(identifier); } |
---|
21 | inline bool isDirectChildOf(Identifier* identifier) |
---|
22 | { this->getIdentifier()->isDirectChildOf(identifier); } |
---|
23 | inline bool isParentOf(Identifier* identifier) |
---|
24 | { this->getIdentifier()->isParentOf(identifier); } |
---|
25 | inline bool isDirectParentOf(Identifier* identifier) |
---|
26 | { this->getIdentifier()->isDirectParentOf(identifier); } |
---|
27 | |
---|
28 | // Identifier* identifier_; |
---|
29 | |
---|
30 | // protected: |
---|
31 | // IdentifierList* parents_; // INTERN! Don't touch this! |
---|
32 | |
---|
33 | }; |
---|
34 | } |
---|
35 | |
---|
36 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.