Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields  

Console.h

00001 /*
00002  * $Id: Console.h,v 1.10 2003/07/22 14:58:10 mindstorm2600 Exp $
00003  */
00004 #ifndef __CLAW_CONSOLE_H__
00005 #define __CLAW_CONSOLE_H__
00006 #include<Unix.h>
00007 #include<TextOutput.h>
00008 #include<TextInput.h>
00009 
00010 namespace clawsoft{
00011         
00019         class Console:public Unix{
00020                 protected:
00022                         TextOutput *err;
00024                         TextOutput *out;
00026                         TextInput  *in;
00028                         bool using_builtin_out;
00030                         bool using_builtin_err;
00032                         bool using_builtin_in;
00033                 public:
00038                         Console();
00043                         ~Console();
00048                         void setOutput(TextOutput *to = 0);
00053                         void setInput(TextInput *ti = 0);
00058                         void setErrorOutput(TextOutput *te = 0);
00062                         void outWrite(const void *buf, Uint32 siz);
00067                         void outWrite(const String &text);
00071                         void outWriteLine(const void *buf, Uint32 siz);
00076                         void outWriteLine(const String &text);
00080                         void errWrite(const void *buf, Uint32 siz);
00085                         void errWrite(const String &text);
00089                         void errWriteLine(const void *buf, Uint32 siz);
00094                         void errWriteLine(const String &text);
00095 
00096 
00102                         void read(void *buf, Uint32 size);
00108                         void readLine(String &line);
00109         };
00110 };
00111 
00112 #endif

Authors:

Juan V. Guerrero
Jannette C. Mejia
Juan C. Guevara

Powered by:

SourceForgeLogo