Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 689


Ignore:
Timestamp:
Dec 26, 2007, 10:26:31 PM (16 years ago)
Author:
rgrieder
Message:
  • it just didn't feel good at all…
Location:
code/branches/FICN/src/orxonox/core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/orxonox/core/DebugLevel.cc

    r688 r689  
    4545        this->softDebugLevel_ = this->softDebugLevelContainer_->getValue(this->softDebugLevel_);
    4646    }
     47
     48    /**
     49        @brief Static function that holds the singleton.
     50    */
     51    int DebugLevel::getSoftDebugLevel()
     52    {
     53        static DebugLevel theOneAndOnlyInstance = DebugLevel();
     54        return theOneAndOnlyInstance.softDebugLevel_;
     55    }
     56
    4757}
    4858
  • code/branches/FICN/src/orxonox/core/DebugLevel.h

    r688 r689  
    4545    {
    4646        public:
    47             static inline int getSoftDebugLevel()
    48             {
    49                 static DebugLevel theOneAndOnlyInstance = DebugLevel();
    50                 return theOneAndOnlyInstance.softDebugLevel_;
    51             }
    52 
     47            static int getSoftDebugLevel();
    5348        private:
    5449            DebugLevel();                       // don't create
Note: See TracChangeset for help on using the changeset viewer.