Advanced Strategic Command
stdio-errorhandler.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 stdioerrorhandlerH
13 #define stdioerrorhandlerH
14 
15 #include <sigc++/sigc++.h>
16 #include "ascstring.h"
17 
18 
19  class StdIoErrorHandler : public sigc::trackable {
20  void printStdout( const ASCString& msg );
21  void printStderr( const ASCString& msg );
22  void messageLogger( const ASCString& msg, int level );
23  public:
24  StdIoErrorHandler( bool quitOnFatalError = true );
25  };
26 
27 
28 #endif
The ASCString class provides an abstract way to manipulate strings.
Definition: ascstring.h:14
StdIoErrorHandler(bool quitOnFatalError=true)