conchan.h

Go to the documentation of this file.
00001 /*
00002  * conchan.h
00003  *
00004  * Console I/O channel class.
00005  *
00006  * Portable Windows Library
00007  *
00008  * Copyright (c) 1993-1998 Equivalence Pty. Ltd.
00009  *
00010  * The contents of this file are subject to the Mozilla Public License
00011  * Version 1.0 (the "License"); you may not use this file except in
00012  * compliance with the License. You may obtain a copy of the License at
00013  * http://www.mozilla.org/MPL/
00014  *
00015  * Software distributed under the License is distributed on an "AS IS"
00016  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
00017  * the License for the specific language governing rights and limitations
00018  * under the License.
00019  *
00020  * The Original Code is Portable Windows Library.
00021  *
00022  * The Initial Developer of the Original Code is Equivalence Pty. Ltd.
00023  *
00024  * Portions are Copyright (C) 1993 Free Software Foundation, Inc.
00025  * All Rights Reserved.
00026  *
00027  * Contributor(s): ______________________________________.
00028  *
00029  * $Revision: 20385 $
00030  * $Author: rjongbloed $
00031  * $Date: 2008-06-04 10:40:38 +0000 (Wed, 04 Jun 2008) $
00032  */
00033 
00034 #ifndef _PCONSOLECHANNEL
00035 #define _PCONSOLECHANNEL
00036 
00037 #ifdef P_USE_PRAGMA
00038 #pragma interface
00039 #endif
00040 
00042 // Console Channel
00043 
00046 class PConsoleChannel : public PChannel
00047 {
00048   PCLASSINFO(PConsoleChannel, PChannel);
00049 
00050   public:
00051     enum ConsoleType {
00052       StandardInput,
00053       StandardOutput,
00054       StandardError
00055     };
00056 
00059 
00060     PConsoleChannel();
00061 
00063     PConsoleChannel(
00064       ConsoleType type  
00065     );
00067 
00068 
00075     virtual PBoolean Open(
00076       ConsoleType type  
00077     );
00079 
00080 
00081 // Include platform dependent part of class
00082 #ifdef _WIN32
00083 #include "msos/ptlib/conchan.h"
00084 #else
00085 #include "unix/ptlib/conchan.h"
00086 #endif
00087 
00088 };
00089 
00090 #endif
00091 
00092 // End Of File ///////////////////////////////////////////////////////////////

Generated on Mon Sep 15 01:21:34 2008 for PTLib by  doxygen 1.5.1