Changeset 6699 for code/branches/chat/src/orxonox
- Timestamp:
- Apr 12, 2010, 5:32:12 PM (15 years ago)
- Location:
- code/branches/chat/src/orxonox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/chat/src/orxonox/ChatHistory.cc
r6698 r6699 28 28 29 29 #include "ChatHistory.h" 30 #include "core/ScopedSingletonManager.h"30 #include <core/ScopedSingletonManager.h> 31 31 32 32 #ifndef CHATTEST … … 39 39 /* constructor */ 40 40 #ifndef CHATTEST 41 ChatHistory(BaseObject* creator) : BaseObject(creator) 41 //ChatHistory::ChatHistory( BaseObject* creator ) : BaseObject(creator) 42 ChatHistory::ChatHistory() 42 43 #else 43 44 ChatHistory::ChatHistory() … … 58 59 this->chat_hist_logline( "--- Logfile opened ---" ); 59 60 } 60 61 assert(0);62 61 63 62 /* Read setting for maximum number of lines and set limit */ … … 142 141 */ 143 142 #ifndef CHATTEST 144 this->hist_logfile.open( PathConfig::getInstance().getLogPathString() +145 "chatlog.log" ,143 this->hist_logfile.open( (PathConfig::getInstance().getLogPathString() + 144 "chatlog.log").c_str(), 146 145 std::fstream::out | std::fstream::app ); 147 146 #else -
code/branches/chat/src/orxonox/ChatHistory.h
r6698 r6699 34 34 35 35 /* define this if you're unit testing */ 36 #define CHATTEST 0 36 //#define CHATTEST 37 37 38 38 #ifndef CHATTEST 39 #include <OrxonoxPrereqs.h> 40 #include <PlayerManager.h> 41 #include <infos/PlayerInfo.h> 39 42 #include <core/BaseObject.h> 43 #include <network/ChatListener.h> 40 44 #include <core/PathConfig.h> 41 #include < Singleton.h>45 #include <util/Singleton.h> 42 46 #endif 43 47 … … 54 58 /* constructor */ 55 59 #ifndef CHATTEST 56 class _OrxonoxExport ChatHistory : public BaseObject, publicChatListener,60 class _OrxonoxExport ChatHistory : public ChatListener, 57 61 public Singleton<ChatHistory> 58 62 … … 64 68 /* constructors, destructors */ 65 69 #ifndef CHATTEST 66 ChatHistory( BaseObject* creator);70 ChatHistory(); 67 71 friend class Singleton<ChatHistory>; 68 72 #else
Note: See TracChangeset
for help on using the changeset viewer.