]> git.tdb.fi Git - libs/core.git/blobdiff - source/io/console.h
Windows compilation fixes
[libs/core.git] / source / io / console.h
index 5b4158fc90b533a96d7399da08d41d45b7887b30..7b7887be80332fea89ddb24b320e7fc93a606e1a 100644 (file)
@@ -17,9 +17,9 @@ class Console: public EventObject
 public:
        enum Stream
        {
 public:
        enum Stream
        {
-               INPUT = 0,
-               OUTPUT = 1,
-               ERROR = 2
+               CIN = 0,
+               COUT = 1,
+               CERR = 2
        };
 
 private:
        };
 
 private:
@@ -46,6 +46,11 @@ public:
        Console. */
        void get_size(unsigned &rows, unsigned &cols);
 
        Console. */
        void get_size(unsigned &rows, unsigned &cols);
 
+       /** Redirects input from or output to another I/O object.  This performs a
+       system-level redirect.  Closing the other object won't affect the
+       redirection. */
+       void redirect(Base &);
+
 protected:
        virtual unsigned do_write(const char *, unsigned);
        virtual unsigned do_read(char *, unsigned);
 protected:
        virtual unsigned do_write(const char *, unsigned);
        virtual unsigned do_read(char *, unsigned);