Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 28, 2011, 10:35:41 PM (13 years ago)
Author:
landauf
Message:

added BaseWriter, a common base class of ConsoleWriter, LogWriter, and also the Shell in future

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/output/src/libraries/util/output/LogWriter.h

    r8787 r8794  
    3434#include <fstream>
    3535
    36 #include "OutputListener.h"
     36#include "BaseWriter.h"
    3737
    3838namespace orxonox
    3939{
    40     class _UtilExport LogWriter : public OutputListener
     40    class _UtilExport LogWriter : public BaseWriter
    4141    {
    4242        public:
     
    4646
    4747        protected:
    48             virtual void output(OutputLevel level, OutputContext context, const std::vector<std::string>& lines);
     48            virtual void printLine(const std::string& line);
    4949
    5050        private:
    5151            LogWriter();
    5252            LogWriter(const LogWriter&);
    53             ~LogWriter();
     53            virtual ~LogWriter();
    5454
    5555            void openFile();
    5656            void closeFile();
    57 
    58             void printLine(const std::string& line);
    5957
    6058            std::string filename_;
Note: See TracChangeset for help on using the changeset viewer.