Last change
on this file since 4318 was
4318,
checked in by patrick, 19 years ago
|
orxonox/trunk: now changed the orxonox baseobject to object id representation. this is much faster, but needs some care, when defining new classes
|
File size:
670 bytes
|
Line | |
---|
1 | /*! |
---|
2 | \file proto_class.h |
---|
3 | \brief Definition of the proto class template, used quickly start work |
---|
4 | */ |
---|
5 | |
---|
6 | |
---|
7 | #ifndef _BASE_OBJECT_H |
---|
8 | #define _BASE_OBJECT_H |
---|
9 | |
---|
10 | #include "stdincl.h" |
---|
11 | #include "class_list.h" |
---|
12 | |
---|
13 | class BaseObject { |
---|
14 | |
---|
15 | public: |
---|
16 | BaseObject (); |
---|
17 | virtual ~BaseObject (); |
---|
18 | |
---|
19 | //void setClassName (const char* className); |
---|
20 | void setClassID(int id); |
---|
21 | |
---|
22 | inline const char* getClassName(void) const { return "";}; |
---|
23 | inline int getClassID(void) const { return this->id; } |
---|
24 | bool isA (char* className); |
---|
25 | |
---|
26 | inline bool isFinalized() { return this->finalized; } |
---|
27 | void finalize(); |
---|
28 | |
---|
29 | private: |
---|
30 | const char* className; |
---|
31 | int id; |
---|
32 | bool finalized; |
---|
33 | }; |
---|
34 | |
---|
35 | #endif /* _BASE_OBJECT_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.