loggingoutput.h

Go to the documentation of this file.
00001 
00002 /***************************************************************************
00003  *                                                                         *
00004  *   This program is free software; you can redistribute it and/or modify  *
00005  *   it under the terms of the GNU General Public License as published by  *
00006  *   the Free Software Foundation; either version 2 of the License, or     *
00007  *   (at your option) any later version.                                   *
00008  *                                                                         *
00009  ***************************************************************************/
00010 
00011 
00012 #ifndef loggingoutputH
00013 #define loggingoutputH
00014 
00015 #include <sigc++/sigc++.h>
00016 #include "ascstring.h"
00017 #include <fstream>
00018 
00019  class LoggingOutputHandler : public SigC::Object {
00020        ASCString filename;
00021        std::ofstream logfile;
00022        void messageLogger( const ASCString& msg, int level );
00023        static ASCString getFilename( const ASCString& path );
00024     public:
00025        LoggingOutputHandler( const ASCString& path );
00026  };
00027 
00028 
00029 #endif

Generated on Mon May 21 01:26:34 2012 for Advanced Strategic Command by  doxygen 1.5.1