#ifndef MSP_IO_CONSOLE_H_
#define MSP_IO_CONSOLE_H_
-#include "base.h"
+#include "eventobject.h"
+#include "handle.h"
namespace Msp {
namespace IO {
be instantiated directly - use one of the cin, cout and cerr references
instead.
*/
-class Console: public Base
+class Console: public EventObject
{
private:
Handle handle;
virtual unsigned do_read(char *, unsigned);
public:
- virtual Handle get_event_handle();
+ virtual const Handle &get_event_handle() { return handle; }
static Console &instance(unsigned);
};