Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5206 in orxonox.OLD for trunk/src/lib/shell/shell.h


Ignore:
Timestamp:
Sep 19, 2005, 12:31:56 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: Shell no more singleton, and ShellInput is now derive from Text correctly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/shell/shell.h

    r5204 r5206  
    3636
    3737  public:
     38    Shell();
    3839    virtual ~Shell();
    39     /** @returns a Pointer to the only object of this Class */
    40     inline static Shell* getInstance() { if (!Shell::singletonRef) Shell::singletonRef = new Shell();  return Shell::singletonRef; };
    41     /** @returns true if this class is instanciated, false otherwise */
    42     inline static bool isInstanciated() { return (Shell::singletonRef == NULL)?false:true; };
    4340
    4441    void activate();
     
    7572
    7673  private:
    77     Shell();
    78     static Shell*            singletonRef;           //!< The singleton-reference to the only memeber of this class.
    7974
    8075    // GENERAL
Note: See TracChangeset for help on using the changeset viewer.