diff options
Diffstat (limited to 'src/client/console.h')
-rw-r--r-- | src/client/console.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/client/console.h b/src/client/console.h index 1a36d00..ee3b85e 100644 --- a/src/client/console.h +++ b/src/client/console.h @@ -8,21 +8,44 @@ #define __INCLUDED_CLIENT_CONSOLE_H__ #include "sys/consoleinterface.h" +#include <sstream> namespace client { /// client console implementation class Console : public sys::ConsoleInterface { public: + Console(); + /// stream to send normal messages too virtual std::ostream & messagestream(); /// stream to send warning messages too virtual std::ostream & warningstream(); + /// stream to send error messages too + virtual std::ostream & errorstream(); + /// stream to send debug messages too virtual std::ostream & debugstream(); + + /// flush buffer + void flush(); + + /// draw the console + void draw(); + + /// toggle the console on or off + void toggle(); + + bool visible; + +protected: + /// console text buffer + std::stringstream buffer; + /// console text data + std::string text; }; } |