X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fio%2Fconsole.h;h=6d6c788780f70887de6d0571cb15ece611dfaf0f;hp=3c0bb71ff3826d23467172a8e86c28f565ae1088;hb=c21ab7e49852585df01b4cc19599e25a918b581b;hpb=6e0fd758970bcb5bad5e3f2454b694cc4d7b4b66 diff --git a/source/io/console.h b/source/io/console.h index 3c0bb71..6d6c788 100644 --- a/source/io/console.h +++ b/source/io/console.h @@ -1,7 +1,8 @@ #ifndef MSP_IO_CONSOLE_H_ #define MSP_IO_CONSOLE_H_ -#include "base.h" +#include "eventobject.h" +#include "handle.h" namespace Msp { namespace IO { @@ -11,7 +12,7 @@ Provides access to standard input, output and error streams. This class can't be instantiated directly - use one of the cin, cout and cerr references instead. */ -class Console: public Base +class Console: public EventObject { private: Handle handle; @@ -41,7 +42,7 @@ protected: virtual unsigned do_read(char *, unsigned); public: - virtual Handle get_event_handle(); + virtual const Handle &get_event_handle() { return handle; } static Console &instance(unsigned); };