Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 16, 2008, 8:45:13 PM (16 years ago)
Author:
rgrieder
Message:

Changed initialisation of TclThreadManager, TclBind and Shell to match the simple singleton concept (runtime assert in the c'tor).
That simplifies things a lot. The instances now 'belong' to GSRoot.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/core/Shell.h

    r1755 r1792  
    3030#define _Shell_H__
    3131
     32#include "CorePrereqs.h"
     33
    3234#include <list>
    3335#include <vector>
    34 
    35 #include "CorePrereqs.h"
    3636
    3737#include "OrxonoxClass.h"
     
    6060    {
    6161        public:
    62             static Shell& getInstance();
    63             static Shell& createShell();
     62            Shell();
     63            virtual ~Shell();
     64
     65            static Shell& getInstance() { assert(singletonRef_s); return *singletonRef_s; }
    6466
    6567            static void clearShell();
     
    104106
    105107        private:
    106             Shell();
    107108            Shell(const Shell& other);
    108             virtual ~Shell();
    109109
    110110            void configureInputBuffer();
     
    142142            unsigned int historyOffset_;
    143143            bool bAddOutputLevel_;
     144
     145            static Shell* singletonRef_s;
    144146    };
    145147}
Note: See TracChangeset for help on using the changeset viewer.