X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fio%2Fbase.h;h=3d862169177f1711c6a9d3820e4fb3f97a6b94ca;hp=61819cfe8144c782dae9e8749d971c3f336aa641;hb=5b541316a8c7bbf8b812c0f1e2dbebaa6563b0ee;hpb=69c5a20bb9ddc75686387d3fa9b7503caef613cc diff --git a/source/io/base.h b/source/io/base.h index 61819cf..3d86216 100644 --- a/source/io/base.h +++ b/source/io/base.h @@ -2,6 +2,7 @@ #define MSP_IO_BASE_H_ #include +#include "handle.h" #include "mode.h" #include "poll.h" @@ -88,6 +89,10 @@ protected: public: /** Returns the end-of-file flag. */ bool eof() const { return eof_flag; } + + /** Returns the system-level handle for the object. Used by Console to + perform redirections. */ + virtual const Handle &get_handle(Mode); }; } // namespace IO