Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 12, 2010, 5:08:27 PM (14 years ago)
Author:
smerkli
Message:

ChatHistory is not being constructed, no idea why.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/chat/src/orxonox/ChatHistory.h

    r6693 r6698  
    3131#include <fstream>
    3232#include <iostream>
     33#include <cassert>
    3334
    3435/* define this if you're unit testing */
    35 #define TEST 1
     36#define CHATTEST 0
    3637
    37 #ifndef TEST
     38#ifndef CHATTEST
    3839#include <core/BaseObject.h>
    3940#include <core/PathConfig.h>
     41#include <Singleton.h>
    4042#endif
    4143
     
    4547
    4648/* Class to implement chat history */
    47 #ifndef TEST
     49#ifndef CHATTEST
    4850namespace orxonox
    4951{
     
    5153
    5254  /* 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
    5559#else
    5660  class ChatHistory
     
    5963    public:
    6064      /* constructors, destructors */
    61 #ifndef TEST
     65#ifndef CHATTEST
    6266      ChatHistory(BaseObject* creator);
     67      friend class Singleton<ChatHistory>;
    6368#else
    6469      ChatHistory();
     
    102107      std::ofstream hist_logfile;
    103108
     109#ifndef CHATTEST
     110      static ChatHistory* singletonPtr_s;
     111#endif
    104112
    105113
     
    131139  };
    132140
    133 #ifndef TEST
     141#ifndef CHATTEST
    134142}
    135143#endif
Note: See TracChangeset for help on using the changeset viewer.