Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 16, 2008, 11:07:34 PM (16 years ago)
Author:
rgrieder
Message:

moved SignalHandler from core to orxonox

Location:
code/branches/core3/src/orxonox
Files:
2 edited
2 moved

Legend:

Unmodified
Added
Removed
  • code/branches/core3/src/orxonox/CMakeLists.txt

    r1555 r1607  
    44  Orxonox.cc
    55  Settings.cc
     6  SignalHandler.cc
    67
    78  console/InGameConsole.cc
  • code/branches/core3/src/orxonox/Main.cc

    r1535 r1607  
    3737
    3838#include "util/OrxonoxPlatform.h"
    39 #include "core/SignalHandler.h"
     39#include "SignalHandler.h"
    4040#include "Orxonox.h"
    4141
  • code/branches/core3/src/orxonox/SignalHandler.cc

    r1605 r1607  
    3232*/
    3333
     34#include "OrxonoxStableHeaders.h"
    3435#include "SignalHandler.h"
    3536
     
    3940SignalHandler * SignalHandler::singletonRef = NULL;
    4041
    41 #ifndef __WIN32__
     42#if ORXONOX_PLATFORM != ORXONOX_PLATFORM_WIN32
    4243
    4344#include <wait.h>
     
    349350}
    350351
    351 #endif /* __WIN32__ */
     352#endif /* ORXONOX_PLATFORM == ORXONOX_PLATFORM_WIN32 */
  • code/branches/core3/src/orxonox/SignalHandler.h

    r1605 r1607  
    3535#define _SignalHandler_H__
    3636
    37 #include "CorePrereqs.h"
     37#include "OrxonoxPrereqs.h"
    3838
    3939#include <list>
     
    4242typedef int (*SignalCallback)( void * someData );
    4343
    44 #ifndef __WIN32__
     44#if ORXONOX_PLATFORM != ORXONOX_PLATFORM_WIN32
    4545#include <signal.h>
    4646
     
    9191};
    9292
    93 #else /* #ifndef __WIN32__ */
     93#else /* ORXONOX_PLATFORM == ORXONOX_PLATFORM_WIN32 */
    9494
    95 class _CoreExport SignalHandler
     95class _OrxonoxExport SignalHandler
    9696{
    97  public:
    98    inline static SignalHandler* getInstance() { if (!SignalHandler::singletonRef) SignalHandler::singletonRef = new SignalHandler(); return SignalHandler::singletonRef; };
    99    void doCatch( const std::string & appName, const std::string & fileName ) {};
    100   void dontCatch() {};
    101   void registerCallback( SignalCallback cb, void * someData ) {};
     97  public:
     98    inline static SignalHandler* getInstance() { if (!SignalHandler::singletonRef) SignalHandler::singletonRef = new SignalHandler(); return SignalHandler::singletonRef; };
     99    void doCatch( const std::string & appName, const std::string & fileName ) {};
     100    void dontCatch() {};
     101    void registerCallback( SignalCallback cb, void * someData ) {};
    102102
    103  private:
     103  private:
    104104    static SignalHandler * singletonRef;
    105105};
    106 #endif /* #ifndef __WIN32__ */
     106
     107#endif /* ORXONOX_PLATFORM == ORXONOX_PLATFORM_WIN32 */
    107108
    108109#endif /* _SignalHandler_H__ */
Note: See TracChangeset for help on using the changeset viewer.