Last change
on this file since 197 was
197,
checked in by landauf, 17 years ago
|
i didnt changed much:
- separated the classes into several files
- did some tests: it works with cc files (@ bensch)
- finished BaseIdentifier
|
File size:
608 bytes
|
Rev | Line | |
---|
[132] | 1 | #include "ClassHierarchy.h" |
---|
[172] | 2 | #include "OrxonoxClass.h" |
---|
[132] | 3 | |
---|
[149] | 4 | namespace orxonox |
---|
| 5 | { |
---|
| 6 | // ############################### |
---|
[162] | 7 | // ### ClassHierarchy ### |
---|
| 8 | // ############################### |
---|
| 9 | ClassHierarchy* ClassHierarchy::pointer_ = NULL; |
---|
| 10 | |
---|
| 11 | ClassHierarchy* ClassHierarchy::getSingleton() |
---|
| 12 | { |
---|
| 13 | if (!pointer_) |
---|
| 14 | pointer_ = new ClassHierarchy(); |
---|
| 15 | |
---|
| 16 | return pointer_; |
---|
| 17 | } |
---|
| 18 | |
---|
| 19 | ClassHierarchy::ClassHierarchy() |
---|
| 20 | { |
---|
[172] | 21 | this->hierarchyCreatingCounter_ = 0; |
---|
[162] | 22 | } |
---|
[172] | 23 | |
---|
| 24 | ClassHierarchy::~ClassHierarchy() |
---|
| 25 | { |
---|
| 26 | this->pointer_ = NULL; |
---|
| 27 | } |
---|
[149] | 28 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.