Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 28, 2008, 3:09:33 PM (16 years ago)
Author:
rgrieder
Message:
  • removed Shell.h dependency from OutputHandler.h to avoid recompiling the entire project when InputBuffer.h changes
Location:
code/branches/network/src/core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/core/OutputHandler.cc

    r1446 r1452  
    3535#include "CoreSettings.h"
    3636#include "ConsoleCommand.h"
     37#include "Shell.h"
    3738
    3839namespace orxonox
     
    8384    {
    8485        return CoreSettings::getSoftDebugLevel(device);
     86    }
     87
     88    /**
     89        @brief Returns the Shell's OutputBuffer. This is mere placed here to avoid
     90               recompiling the entire project when Shell.h changes.
     91        @return The OutputBuffer of the Shell
     92    */
     93    OutputBuffer& OutputHandler::getShellOutputBuffer()
     94    {
     95        return Shell::getInstance().getOutputBuffer();
    8596    }
    8697
  • code/branches/network/src/core/OutputHandler.h

    r1446 r1452  
    4444#include <string>
    4545
    46 #include "Shell.h"
     46#include "OutputBuffer.h"
    4747
    4848namespace orxonox
     
    9595
    9696            static int getSoftDebugLevel(OutputHandler::OutputDevice device);
     97
     98            OutputBuffer& getShellOutputBuffer();
    9799
    98100            template <class T>
     
    157159
    158160        if (OutputHandler::getSoftDebugLevel(OutputHandler::LD_Shell) >= this->outputLevel_)
    159             Shell::getInstance().getOutputBuffer() << output;
     161            OutputHandler::getOutStream().getShellOutputBuffer() << output;
    160162
    161163        return *this;
     
    181183
    182184        if (OutputHandler::getSoftDebugLevel(OutputHandler::LD_Shell) >= out.getOutputLevel())
    183             Shell::getInstance().getOutputBuffer() << output;
     185            OutputHandler::getOutStream().getShellOutputBuffer() << output;
    184186
    185187        return out;
Note: See TracChangeset for help on using the changeset viewer.