| 
                Last change
                  on this file since 4452 was
                  3955,
                  checked in by bensch, 21 years ago
           | 
        
        
          | 
               
orxonox/trunk: better proto-class-files 
 
           | 
        
        | 
            File size:
            466 bytes
           | 
      
      
        
  | Rev | Line |   | 
|---|
| [3655] | 1 | /*!  | 
|---|
 | 2 |     \file proto_singleton.h | 
|---|
| [3955] | 3 |     \brief Definition of the ... singleton Class | 
|---|
| [3655] | 4 |      | 
|---|
 | 5 | */ | 
|---|
 | 6 |  | 
|---|
 | 7 | #ifndef _PROTO_SINGLETON_H | 
|---|
 | 8 | #define _PROTO_SINGLETON_H | 
|---|
 | 9 |  | 
|---|
 | 10 | #include "base_object.h" | 
|---|
 | 11 |  | 
|---|
| [3955] | 12 | // FORWARD DEFINITION | 
|---|
| [3655] | 13 |  | 
|---|
 | 14 | //! A default singleton class. | 
|---|
 | 15 | class ProtoSingleton : public BaseObject { | 
|---|
 | 16 |  | 
|---|
 | 17 |  public: | 
|---|
 | 18 |   static ProtoSingleton* getInstance(void); | 
|---|
 | 19 |   virtual ~ProtoSingleton(void); | 
|---|
 | 20 |  | 
|---|
 | 21 |  private: | 
|---|
 | 22 |   ProtoSingleton(void); | 
|---|
 | 23 |   static ProtoSingleton* singletonRef; | 
|---|
 | 24 | }; | 
|---|
 | 25 |  | 
|---|
 | 26 | #endif /* _PROTO_SINGLETON_H */ | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.