Changeset 4519 in orxonox.OLD for orxonox/trunk/src/lib/event
- Timestamp:
- Jun 6, 2005, 2:36:04 PM (19 years ago)
- Location:
- orxonox/trunk/src/lib/event
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/event/event_handler.cc
r4457 r4519 55 55 */ 56 56 EventHandler* EventHandler::singletonRef = NULL; 57 58 59 /**60 \returns a Pointer to this Class61 */62 EventHandler* EventHandler::getInstance(void)63 {64 if (!EventHandler::singletonRef)65 EventHandler::singletonRef = new EventHandler();66 return EventHandler::singletonRef;67 }68 57 69 58 -
orxonox/trunk/src/lib/event/event_handler.h
r4457 r4519 19 19 20 20 public: 21 static EventHandler* getInstance(void);22 21 virtual ~EventHandler(void); 22 /** \returns a Pointer to the only object of this Class */ 23 inline static EventHandler* getInstance(void) { if (!singletonRef) singletonRef = new EventHandler(); return singletonRef; }; 23 24 void init(); 24 25
Note: See TracChangeset
for help on using the changeset viewer.