Advanced Strategic Command
loggingoutput.h
Go to the documentation of this file.
1 
2 /***************************************************************************
3  * *
4  * This program is free software; you can redistribute it and/or modify *
5  * it under the terms of the GNU General Public License as published by *
6  * the Free Software Foundation; either version 2 of the License, or *
7  * (at your option) any later version. *
8  * *
9  ***************************************************************************/
10 
11 
12 #ifndef loggingoutputH
13 #define loggingoutputH
14 
15 #include <sigc++/sigc++.h>
16 #include "ascstring.h"
17 #include <fstream>
18 
19  class LoggingOutputHandler : public sigc::trackable {
20  ASCString filename;
21  std::ofstream logfile;
22  void messageLogger( const ASCString& msg, int level );
23  static ASCString getFilename( const ASCString& path );
24  public:
25  LoggingOutputHandler( const ASCString& path );
26  };
27 
28 
29 #endif
LoggingOutputHandler(const ASCString &path)
The ASCString class provides an abstract way to manipulate strings.
Definition: ascstring.h:14