Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 2, 2009, 5:54:13 PM (15 years ago)
Author:
rgrieder
Message:

IOConsole cleanup and added ConsoleWriter to the OutputHandler so that we get std::cout output before the creation of the IOConsole.

File:
1 edited

Legend:

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

    r6004 r6015  
    7474    // Forward declarations for classes in the source file
    7575    class LogFileWriter;
     76    class ConsoleWriter;
    7677    class MemoryLogWriter;
    7778
     
    129130            //! Set the log path once the program has been properly initialised
    130131            void setLogPath(const std::string& path);
     132            //! Disables the std::cout stream for output
     133            void disableCout();
     134            //! Enables the std::cout stream for output (startup behaviour)
     135            void enableCout();
    131136
    132137            //! Sets the level of the incoming output and returns the OutputHandler
     
    210215            OutputHandler(const OutputHandler& rhs); //! Unused and undefined
    211216
    212             std::list<OutputListener*> listeners_; //!< Array with all registered output listeners
    213             int outputLevel_;                      //!< The level of the incoming output
    214             LogFileWriter* logFile_;               //!< Listener that writes to the log file
    215             MemoryLogWriter* output_;              //!< Listener that Stores ALL output below the current soft debug level
    216             static int softDebugLevel_s;           //!< Maximum of all soft debug levels. @note This is only static for faster access
     217            std::list<OutputListener*> listeners_;        //!< Array with all registered output listeners
     218            int                        outputLevel_;      //!< The level of the incoming output
     219            LogFileWriter*             logFile_;          //!< Listener that writes to the log file
     220            ConsoleWriter*             consoleWriter_;    //!< Listener for std::cout (just program beginning)
     221            MemoryLogWriter*           output_;           //!< Listener that Stores ALL output below the current soft debug level
     222            static int                 softDebugLevel_s;  //!< Maximum of all soft debug levels. @note This is only static for faster access
    217223    };
    218224
Note: See TracChangeset for help on using the changeset viewer.