Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-02-03 01:43:03 +0000
committerStijn Buys <ingar@osirion.org>2008-02-03 01:43:03 +0000
commitb4973888aeaea2dde6058bc06c3f6631349e7f3c (patch)
tree010de10692b330d7634ad3090fb94d14c101f484 /src/client/console.h
parent67f8a7a783e550cab8e6a77d997b31815ee8cd7e (diff)
command buffer handling
engine function parsing buffered client console
Diffstat (limited to 'src/client/console.h')
-rw-r--r--src/client/console.h23
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;
};
}