Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 10, 2008, 3:35:50 PM (17 years ago)
Author:
landauf
Message:

moved Debug.h, OutputHandler and OutputBuffer to util, to make COUT(x) available everywhere

File:
1 moved

Legend:

Unmodified
Added
Removed
  • code/branches/core3/src/util/OutputBuffer.h

    r1574 r1586  
    3434#include <iostream>
    3535
    36 #include "CorePrereqs.h"
     36#include "UtilPrereqs.h"
    3737
    3838namespace orxonox
    3939{
    40     class _CoreExport OutputBufferListener
     40    class _UtilExport OutputBufferListener
    4141    {
    4242        friend class OutputBuffer;
     
    4949    };
    5050
    51     class _CoreExport OutputBuffer
     51    class _UtilExport OutputBuffer
    5252    {
    5353        public:
     
    5959            {
    6060                this->stream_ << object;
     61                this->callListeners();
     62                return *this;
     63            }
     64
     65            template <const OutputBuffer&>
     66            inline OutputBuffer& operator<<(const OutputBuffer& object)
     67            {
     68                this->stream_ << object.stream_;
    6169                this->callListeners();
    6270                return *this;
     
    97105            void unregisterListener(OutputBufferListener* listener);
    98106
     107            inline std::stringstream& getStream()
     108                { return this->stream_; }
     109
    99110        private:
    100111            void callListeners();
Note: See TracChangeset for help on using the changeset viewer.