Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 30, 2009, 12:39:51 PM (15 years ago)
Author:
rgrieder
Message:

De-singletonised Shell so that both consoles have their own Shell instance. However they share the history.
Also modified IOConsole to hopefully work with status lines.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/console/src/libraries/util/OutputHandler.cc

    r6000 r6004  
    9393            this->outputStream_ = &this->logFile_;
    9494            // Use default level until we get the configValue from the Core
    95             outputHandler.setSoftDebugLevel(this->getOutputListenerName(), OutputLevel::Debug);
     95            this->setSoftDebugLevel(OutputLevel::Debug);
    9696            outputHandler.registerOutputListener(this);
    9797        }
     
    152152            this->outputStream_ = &this->buffer_;
    153153            // We capture as much input as the listener with the highest level
    154             outputHandler.setSoftDebugLevel(this->getOutputListenerName(), OutputHandler::getSoftDebugLevel());
     154            this->setSoftDebugLevel(OutputHandler::getSoftDebugLevel());
    155155            outputHandler.registerOutputListener(this);
    156156        }
    157157
    158158        //! Pushed the just written output to the internal array
    159         void outputChanged()
     159        void outputChanged(int level)
    160160        {
    161161            // Read ostringstream and store it
    162             this->output_.push_back(std::make_pair(OutputHandler::getInstance().getOutputLevel(), this->buffer_.str()));
     162            this->output_.push_back(std::make_pair(level, this->buffer_.str()));
    163163            // Clear content and flags
    164164            this->buffer_.str(std::string());
     
    210210        }
    211211        this->listeners_.push_back(listener);
     212        // Update global soft debug level
     213        this->setSoftDebugLevel(listener->getOutputListenerName(), listener->getSoftDebugLevel());
    212214    }
    213215
Note: See TracChangeset for help on using the changeset viewer.