source:
orxonox.OLD/trunk/src/util/object_manager.h
@
5769
| Last change on this file since 5769 was 5750, checked in by bensch, 20 years ago | |
|---|---|
| File size: 784 bytes | |
| Rev | Line | |
|---|---|---|
| [4838] | 1 | /*! |
| [5629] | 2 | * @file object_manager.h |
| [4838] | 3 | * @brief Definition of the ... singleton Class |
| [3655] | 4 | */ |
| 5 | ||
| [5629] | 6 | #ifndef _OBJECT_MANAGER_H |
| 7 | #define _OBJECT_MANAGER_H | |
| [3655] | 8 | |
| 9 | #include "base_object.h" | |
| [5682] | 10 | #include <list> |
| [3655] | 11 | |
| [5405] | 12 | // FORWARD DECLARATION |
| [3655] | 13 | |
| [5682] | 14 | |
| 15 | class ObjectGroupList | |
| 16 | { | |
| 17 | ||
| 18 | ||
| 19 | ||
| 20 | }; | |
| 21 | ||
| 22 | ||
| [3655] | 23 | //! A default singleton class. |
| [5629] | 24 | class ObjectManager : public BaseObject { |
| [3655] | 25 | |
| 26 | public: | |
| [5629] | 27 | virtual ~ObjectManager(void); |
| [4838] | 28 | /** @returns a Pointer to the only object of this Class */ |
| [5629] | 29 | inline static ObjectManager* getInstance(void) { if (!ObjectManager::singletonRef) ObjectManager::singletonRef = new ObjectManager(); return ObjectManager::singletonRef; }; |
| [3655] | 30 | |
| [5682] | 31 | |
| 32 | ObjectGroupList* getGroupList( ); | |
| 33 | ||
| [3655] | 34 | private: |
| [5629] | 35 | ObjectManager(void); |
| 36 | static ObjectManager* singletonRef; | |
| [5682] | 37 | |
| 38 | std::list<ObjectGroupList> groupList; | |
| 39 | ||
| 40 | ||
| [3655] | 41 | }; |
| 42 | ||
| [5629] | 43 | #endif /* _OBJECT_MANAGER_H */ |
Note: See TracBrowser
for help on using the repository browser.










