Changeset 6698 for code/branches/chat/src/orxonox/ChatHistory.h
- Timestamp:
- Apr 12, 2010, 5:08:27 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/chat/src/orxonox/ChatHistory.h
r6693 r6698 31 31 #include <fstream> 32 32 #include <iostream> 33 #include <cassert> 33 34 34 35 /* define this if you're unit testing */ 35 #define TEST 136 #define CHATTEST 0 36 37 37 #ifndef TEST38 #ifndef CHATTEST 38 39 #include <core/BaseObject.h> 39 40 #include <core/PathConfig.h> 41 #include <Singleton.h> 40 42 #endif 41 43 … … 45 47 46 48 /* Class to implement chat history */ 47 #ifndef TEST49 #ifndef CHATTEST 48 50 namespace orxonox 49 51 { … … 51 53 52 54 /* constructor */ 53 #ifndef TEST 54 class _OrxonoxExport ChatHistory : public BaseObject, public ChatListener 55 #ifndef CHATTEST 56 class _OrxonoxExport ChatHistory : public BaseObject, public ChatListener, 57 public Singleton<ChatHistory> 58 55 59 #else 56 60 class ChatHistory … … 59 63 public: 60 64 /* constructors, destructors */ 61 #ifndef TEST65 #ifndef CHATTEST 62 66 ChatHistory(BaseObject* creator); 67 friend class Singleton<ChatHistory>; 63 68 #else 64 69 ChatHistory(); … … 102 107 std::ofstream hist_logfile; 103 108 109 #ifndef CHATTEST 110 static ChatHistory* singletonPtr_s; 111 #endif 104 112 105 113 … … 131 139 }; 132 140 133 #ifndef TEST141 #ifndef CHATTEST 134 142 } 135 143 #endif
Note: See TracChangeset
for help on using the changeset viewer.