Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 688


Ignore:
Timestamp:
Dec 26, 2007, 9:33:08 PM (17 years ago)
Author:
rgrieder
Message:
  • no comment (fabian will understand)
Location:
code/branches/FICN/src/orxonox/core
Files:
3 added
2 edited

Legend:

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

    r687 r688  
    3131*/
    3232
    33 #include "CoreIncludes.h"
     33#include "ConfigValueContainer.h"
    3434#include "Debug.h"
    3535#include "DebugLevel.h"
     
    4545        this->softDebugLevel_ = this->softDebugLevelContainer_->getValue(this->softDebugLevel_);
    4646    }
    47 
    48     /**
    49         @returns a pointer to the only existing instance of this class.
    50     */
    51     int DebugLevel::getSoftDebugLevel()
    52     {
    53         static DebugLevel theOneAndOnlyInstance = DebugLevel();
    54         return theOneAndOnlyInstance.softDebugLevel_;
    55     }
    5647}
    5748
  • code/branches/FICN/src/orxonox/core/DebugLevel.h

    r687 r688  
    3939#include "CorePrereqs.h"
    4040
    41 #include "OrxonoxClass.h"
    42 
    4341namespace orxonox
    4442{
     
    4745    {
    4846        public:
    49             static int getSoftDebugLevel();
     47            static inline int getSoftDebugLevel()
     48            {
     49                static DebugLevel theOneAndOnlyInstance = DebugLevel();
     50                return theOneAndOnlyInstance.softDebugLevel_;
     51            }
    5052
    5153        private:
Note: See TracChangeset for help on using the changeset viewer.