Line | |
---|
1 | /*! |
---|
2 | * @file new_class_id.h |
---|
3 | * @brief Definition of a dynamically allocating ClassID |
---|
4 | * |
---|
5 | */ |
---|
6 | |
---|
7 | #ifndef _NEW_CLASS_ID_H |
---|
8 | #define _NEW_CLASS_ID_H |
---|
9 | |
---|
10 | #include "type_info.h" |
---|
11 | #include <set> |
---|
12 | #include <string> |
---|
13 | |
---|
14 | #include "new_object_list.h" |
---|
15 | |
---|
16 | //! A class to dynamically allocate ClassID's and support a isA operator |
---|
17 | class NewClassID |
---|
18 | { |
---|
19 | public: |
---|
20 | NewClassID(); |
---|
21 | ~NewClassID(); |
---|
22 | |
---|
23 | void registerObject(NewObjectListBase* object); |
---|
24 | |
---|
25 | private: |
---|
26 | std::string _className; |
---|
27 | |
---|
28 | }; |
---|
29 | |
---|
30 | |
---|
31 | #endif /* _NEW_CLASS_ID_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.