Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 26, 2007, 8:54:56 PM (17 years ago)
Author:
landauf
Message:

replaced retos tiny hack (which didn't worked on my system) with a new approach

Location:
code/branches/FICN/src/orxonox/core
Files:
2 edited

Legend:

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

    r686 r687  
    4242    DebugLevel::DebugLevel()
    4343    {
    44         this->softDebugLevel_ = 4;   // accounts for the recursive call when creating the object
    45         RegisterRootObject(DebugLevel);
    46         SetConfigValue(softDebugLevel_, 2);
     44        this->softDebugLevelContainer_ = new ConfigValueContainer(std::string("DebugLevel"), std::string("softDebugLevel_"), this->softDebugLevel_ = 2);
     45        this->softDebugLevel_ = this->softDebugLevelContainer_->getValue(this->softDebugLevel_);
    4746    }
    4847
  • code/branches/FICN/src/orxonox/core/DebugLevel.h

    r686 r687  
    4444{
    4545    //! The DebugLevel class is a singleton, only used to configure the amount of debug output.
    46     class _CoreExport DebugLevel : public OrxonoxClass
     46    class _CoreExport DebugLevel
    4747    {
    4848        public:
     
    5454            ~DebugLevel() {}                    // don't delete
    5555
    56             int softDebugLevel_;                //!< The output level
     56            int softDebugLevel_;                            //!< The debug level
     57            ConfigValueContainer* softDebugLevelContainer_; //!< The config value container for the debug level
    5758    };
    5859}
Note: See TracChangeset for help on using the changeset viewer.