1 ///////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxMessageOutput class. Shows a message to the user
4 // Author: Mattia Barbon
8 // Copyright: (c) wxWindows team
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
15 // ----------------------------------------------------------------------------
17 // ----------------------------------------------------------------------------
20 #pragma interface "msgout.h"
24 #include "wx/wxchar.h"
26 class WXDLLEXPORT wxMessageOutput
29 virtual ~wxMessageOutput() {};
31 // show a message to the user
32 virtual void Printf(const wxChar
* format
, ...) ATTRIBUTE_PRINTF_2
= 0;
33 // gets the current wxMessageOutput object
34 static wxMessageOutput
* Get();
35 // sets the global wxMessageOutput instance; returns the previous one
36 static wxMessageOutput
* Set(wxMessageOutput
* msgout
);
38 static wxMessageOutput
* ms_msgOut
;
41 // sends output to stderr
42 class WXDLLEXPORT wxMessageOutputStderr
: public wxMessageOutput
45 wxMessageOutputStderr() {};
47 virtual void Printf(const wxChar
* format
, ...) ATTRIBUTE_PRINTF_2
;
52 // shows output in a message box
53 class WXDLLEXPORT wxMessageOutputMessageBox
: public wxMessageOutput
56 wxMessageOutputMessageBox() {};
58 virtual void Printf(const wxChar
* format
, ...) ATTRIBUTE_PRINTF_2
;
63 class WXDLLEXPORT wxMessageOutputLog
: public wxMessageOutput
66 wxMessageOutputLog() {};
68 virtual void Printf(const wxChar
* format
, ...) ATTRIBUTE_PRINTF_2
;