📄 conchan_8h-source.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>conchan.h Source File</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center><hr><h1>conchan.h</h1><a href="conchan_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span>00002 <span class="comment"> * conchan.h</span>00003 <span class="comment"> *</span>00004 <span class="comment"> * Console I/O channel class.</span>00005 <span class="comment"> *</span>00006 <span class="comment"> * Portable Windows Library</span>00007 <span class="comment"> *</span>00008 <span class="comment"> * Copyright (c) 1993-1998 Equivalence Pty. Ltd.</span>00009 <span class="comment"> *</span>00010 <span class="comment"> * The contents of this file are subject to the Mozilla Public License</span>00011 <span class="comment"> * Version 1.0 (the "License"); you may not use this file except in</span>00012 <span class="comment"> * compliance with the License. You may obtain a copy of the License at</span>00013 <span class="comment"> * http://www.mozilla.org/MPL/</span>00014 <span class="comment"> *</span>00015 <span class="comment"> * Software distributed under the License is distributed on an "AS IS"</span>00016 <span class="comment"> * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See</span>00017 <span class="comment"> * the License for the specific language governing rights and limitations</span>00018 <span class="comment"> * under the License.</span>00019 <span class="comment"> *</span>00020 <span class="comment"> * The Original Code is Portable Windows Library.</span>00021 <span class="comment"> *</span>00022 <span class="comment"> * The Initial Developer of the Original Code is Equivalence Pty. Ltd.</span>00023 <span class="comment"> *</span>00024 <span class="comment"> * Portions are Copyright (C) 1993 Free Software Foundation, Inc.</span>00025 <span class="comment"> * All Rights Reserved.</span>00026 <span class="comment"> *</span>00027 <span class="comment"> * Contributor(s): ______________________________________.</span>00028 <span class="comment"> *</span>00029 <span class="comment"> * $Log: conchan.h,v $</span>00030 <span class="comment"> * Revision 1.5 2003/09/17 05:41:58 csoutheren</span>00031 <span class="comment"> * Removed recursive includes</span>00032 <span class="comment"> *</span>00033 <span class="comment"> * Revision 1.4 2003/09/17 01:18:02 csoutheren</span>00034 <span class="comment"> * Removed recursive include file system and removed all references</span>00035 <span class="comment"> * to deprecated coooperative threading support</span>00036 <span class="comment"> *</span>00037 <span class="comment"> * Revision 1.3 2002/09/16 01:08:59 robertj</span>00038 <span class="comment"> * Added #define so can select if #pragma interface/implementation is used on</span>00039 <span class="comment"> * platform basis (eg MacOS) rather than compiler, thanks Robert Monaghan.</span>00040 <span class="comment"> *</span>00041 <span class="comment"> * Revision 1.2 2001/05/22 12:49:32 robertj</span>00042 <span class="comment"> * Did some seriously wierd rewrite of platform headers to eliminate the</span>00043 <span class="comment"> * stupid GNU compiler warning about braces not matching.</span>00044 <span class="comment"> *</span>00045 <span class="comment"> * Revision 1.1 1999/06/13 13:54:07 robertj</span>00046 <span class="comment"> * Added PConsoleChannel class for access to stdin/stdout/stderr.</span>00047 <span class="comment"> *</span>00048 <span class="comment"> */</span>00049 00050 <span class="preprocessor">#ifndef _PCONSOLECHANNEL</span>00051 <span class="preprocessor"></span><span class="preprocessor">#define _PCONSOLECHANNEL</span>00052 <span class="preprocessor"></span>00053 <span class="preprocessor">#ifdef P_USE_PRAGMA</span>00054 <span class="preprocessor"></span><span class="preprocessor">#pragma interface</span>00055 <span class="preprocessor"></span><span class="preprocessor">#endif</span>00056 <span class="preprocessor"></span>00058 <span class="comment">// Console Channel</span>00059 <a name="l00062"></a><a class="code" href="classPConsoleChannel.html">00062</a> <span class="keyword">class </span><a class="code" href="classPConsoleChannel.html">PConsoleChannel</a> : <span class="keyword">public</span> <a class="code" href="classPChannel.html">PChannel</a>00063 {00064 <a class="code" href="object_8h.html#a27">PCLASSINFO</a>(<a class="code" href="classPConsoleChannel.html">PConsoleChannel</a>, <a class="code" href="classPChannel.html">PChannel</a>);00065 00066 <span class="keyword">public</span>:<a name="l00067"></a><a class="code" href="classPConsoleChannel.html#s3">00067</a> <span class="keyword">enum</span> <a class="code" href="classPConsoleChannel.html#s3">ConsoleType</a> {00068 <a class="code" href="classPConsoleChannel.html#s3s0">StandardInput</a>,00069 <a class="code" href="classPConsoleChannel.html#s3s1">StandardOutput</a>,00070 <a class="code" href="classPConsoleChannel.html#s3s2">StandardError</a>00071 };00072 00075 00076 <a class="code" href="classPConsoleChannel.html#z57_0">PConsoleChannel</a>();00077 00079 <a class="code" href="classPConsoleChannel.html#z57_0">PConsoleChannel</a>(00080 <a class="code" href="classPConsoleChannel.html#s3">ConsoleType</a> type 00081 );00083 00084 00091 <span class="keyword">virtual</span> BOOL <a class="code" href="classPConsoleChannel.html#z59_0">Open</a>(00092 <a class="code" href="classPConsoleChannel.html#s3">ConsoleType</a> type 00093 );00095 00096 00097 <span class="comment">// Include platform dependent part of class</span>00098 <span class="preprocessor">#ifdef _WIN32</span>00099 <span class="preprocessor"></span><span class="preprocessor">#include "msos/ptlib/conchan.h"</span>00100 <span class="preprocessor">#else</span>00101 <span class="preprocessor"></span><span class="preprocessor">#include "unix/ptlib/conchan.h"</span>00102 <span class="preprocessor">#endif</span>00103 <span class="preprocessor"></span>00104 };00105 00106 <span class="preprocessor">#endif</span>00107 <span class="preprocessor"></span>00108 <span class="comment">// End Of File ///////////////////////////////////////////////////////////////</span></pre></div><hr><address style="align: right;"><small>Generated on Wed Sep 29 22:44:10 2004 for PWLib by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.18 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -