Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/world_entities/src/util/object_manager.h @ 5629

Last change on this file since 5629 was 5629, checked in by bensch, 18 years ago

we: added grid for ObjectManager

File size: 644 bytes
Line 
1/*!
2 * @file object_manager.h
3 * @brief Definition of the ... singleton Class
4*/
5
6#ifndef _OBJECT_MANAGER_H
7#define _OBJECT_MANAGER_H
8
9#include "base_object.h"
10
11// FORWARD DECLARATION
12
13//! A default singleton class.
14class ObjectManager : public BaseObject {
15
16 public:
17  virtual ~ObjectManager(void);
18  /** @returns a Pointer to the only object of this Class */
19  inline static ObjectManager* getInstance(void) { if (!ObjectManager::singletonRef) ObjectManager::singletonRef = new ObjectManager();  return ObjectManager::singletonRef; };
20
21 private:
22  ObjectManager(void);
23  static ObjectManager* singletonRef;
24};
25
26#endif /* _OBJECT_MANAGER_H */
Note: See TracBrowser for help on using the repository browser.