Ignore:
Timestamp:
06/07/06 18:38:29 (18 years ago)
Author:
mattausch
Message:

environment as a singleton

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/Environment.h

    r938 r1004  
    174174 
    175175public:   
    176   /**@name Methods */ 
    177   //@{ 
    178   /// Constructor of the CEnvironment class. 
    179   Environment(); 
    180   /// Destructor of the CEnvironment class. 
    181   virtual ~Environment(); 
    182    
    183   /// This method is used as a help on available command line options. 
    184   virtual void PrintUsage(ostream &s) const; 
    185  
    186   virtual void SetStaticOptions(); 
     176         
     177public: 
     178 
     179        /** Returns the resource manager as a singleton. 
     180        */ 
     181        static Environment *GetSingleton(); 
     182 
     183        static void DelSingleton(); 
     184 
     185    /// This method is used as a help on available command line options. 
     186        virtual void PrintUsage(ostream &s) const; 
     187 
     188        virtual void SetStaticOptions(); 
    187189 
    188190 
     
    312314  /// returns named option as a character string. 
    313315  bool GetStringValue(const char *name, 
    314                                                                                         char *value, 
    315                                                                                         const bool isFatal = false) const; 
     316                                          char *value, 
     317                                          const bool isFatal = false) const; 
    316318   
    317319  //@} 
     
    348350                char *filenameCoded); 
    349351 
     352protected: 
     353 
     354        /**@name Methods */  //@{ 
     355  /// Constructor of the CEnvironment class. 
     356  Environment(); 
     357  /// Destructor of the CEnvironment class. 
     358  virtual ~Environment(); 
     359 
     360private: 
     361 
     362        static Environment *sEnvironment; 
    350363}; 
    351364 
    352365// global environment value 
    353 extern Environment *environment; 
     366//extern Environment *environment; 
    354367 
    355368} 
Note: See TracChangeset for help on using the changeset viewer.