📄 pipechan_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>pipechan.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>pipechan.h</h1><a href="pipechan_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span>00002 <span class="comment"> * pipechan.h</span>00003 <span class="comment"> *</span>00004 <span class="comment"> * Sub-process with communications using pipe 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: pipechan.h,v $</span>00030 <span class="comment"> * Revision 1.22 2003/09/17 05:41:59 csoutheren</span>00031 <span class="comment"> * Removed recursive includes</span>00032 <span class="comment"> *</span>00033 <span class="comment"> * Revision 1.21 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.20 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.19 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.18 1999/03/09 02:59:50 robertj</span>00046 <span class="comment"> * Changed comments to doc++ compatible documentation.</span>00047 <span class="comment"> *</span>00048 <span class="comment"> * Revision 1.17 1999/02/16 08:11:09 robertj</span>00049 <span class="comment"> * MSVC 6.0 compatibility changes.</span>00050 <span class="comment"> *</span>00051 <span class="comment"> * Revision 1.16 1998/11/02 10:06:39 robertj</span>00052 <span class="comment"> * Added capability of pip output to go to stdout/stderr.</span>00053 <span class="comment"> *</span>00054 <span class="comment"> * Revision 1.15 1998/10/30 10:42:29 robertj</span>00055 <span class="comment"> * Better function arrangement for multi platforming.</span>00056 <span class="comment"> *</span>00057 <span class="comment"> * Revision 1.14 1998/10/29 11:29:17 robertj</span>00058 <span class="comment"> * Added ability to set environment in sub-process.</span>00059 <span class="comment"> *</span>00060 <span class="comment"> * Revision 1.13 1998/10/26 09:11:05 robertj</span>00061 <span class="comment"> * Added ability to separate out stdout from stderr on pipe channels.</span>00062 <span class="comment"> *</span>00063 <span class="comment"> * Revision 1.12 1998/09/23 06:21:08 robertj</span>00064 <span class="comment"> * Added open source copyright license.</span>00065 <span class="comment"> *</span>00066 <span class="comment"> * Revision 1.11 1997/01/03 05:25:05 robertj</span>00067 <span class="comment"> * Added Wait and Kill functions.</span>00068 <span class="comment"> *</span>00069 <span class="comment"> * Revision 1.10 1996/03/31 08:50:51 robertj</span>00070 <span class="comment"> * Changed string list to array.</span>00071 <span class="comment"> * Added function to idicate if sub-process is running.</span>00072 <span class="comment"> *</span>00073 <span class="comment"> * Revision 1.9 1995/07/31 12:15:45 robertj</span>00074 <span class="comment"> * Removed PContainer from PChannel ancestor.</span>00075 <span class="comment"> *</span>00076 <span class="comment"> * Revision 1.8 1995/06/17 11:12:53 robertj</span>00077 <span class="comment"> * Documentation update.</span>00078 <span class="comment"> *</span>00079 <span class="comment"> * Revision 1.7 1995/03/14 12:42:02 robertj</span>00080 <span class="comment"> * Updated documentation to use HTML codes.</span>00081 <span class="comment"> *</span>00082 <span class="comment"> * Revision 1.6 1995/01/09 12:39:01 robertj</span>00083 <span class="comment"> * Documentation.</span>00084 <span class="comment"> *</span>00085 <span class="comment"> * Revision 1.5 1994/10/23 04:50:55 robertj</span>00086 <span class="comment"> * Further refinement of semantics after implementation.</span>00087 <span class="comment"> *</span>00088 <span class="comment"> * Revision 1.4 1994/09/25 10:43:19 robertj</span>00089 <span class="comment"> * Added more implementation.</span>00090 <span class="comment"> *</span>00091 <span class="comment"> * Revision 1.3 1994/08/23 11:32:52 robertj</span>00092 <span class="comment"> * Oops</span>00093 <span class="comment"> *</span>00094 <span class="comment"> * Revision 1.2 1994/08/22 00:46:48 robertj</span>00095 <span class="comment"> * Added pragma fro GNU C++ compiler.</span>00096 <span class="comment"> *</span>00097 <span class="comment"> * Revision 1.1 1994/04/20 12:17:44 robertj</span>00098 <span class="comment"> * Initial revision</span>00099 <span class="comment"> *</span>00100 <span class="comment"> */</span>00101 00102 <span class="preprocessor">#ifndef _PPIPECHANNEL</span>00103 <span class="preprocessor"></span><span class="preprocessor">#define _PPIPECHANNEL</span>00104 <span class="preprocessor"></span>00105 <span class="preprocessor">#ifdef P_USE_PRAGMA</span>00106 <span class="preprocessor"></span><span class="preprocessor">#pragma interface</span>00107 <span class="preprocessor"></span><span class="preprocessor">#endif</span>00108 <span class="preprocessor"></span>00109 <a name="l00135"></a><a class="code" href="classPPipeChannel.html">00135</a> <span class="keyword">class </span><a class="code" href="classPPipeChannel.html">PPipeChannel</a> : <span class="keyword">public</span> <a class="code" href="classPChannel.html">PChannel</a>00136 {00137 <a class="code" href="object_8h.html#a27">PCLASSINFO</a>(<a class="code" href="classPPipeChannel.html">PPipeChannel</a>, <a class="code" href="classPChannel.html">PChannel</a>);00138 00139 <span class="keyword">public</span>:00142 <a name="l00143"></a><a class="code" href="classPPipeChannel.html#z213_0">00143</a> <span class="keyword">enum</span> <a class="code" href="classPPipeChannel.html#z213_0">OpenMode</a> {00145 <a class="code" href="classPPipeChannel.html#z213_0s0">ReadOnly</a>, 00147 <a class="code" href="classPPipeChannel.html#z213_0s1">WriteOnly</a>, 00149 <a class="code" href="classPPipeChannel.html#z213_0s2">ReadWrite</a>, 00152 <a class="code" href="classPPipeChannel.html#z213_0s3">ReadWriteStd</a>00153 };00154 00157 <a class="code" href="classPPipeChannel.html#z213_1">PPipeChannel</a>();00163 <a class="code" href="classPPipeChannel.html#z213_1">PPipeChannel</a>(00164 <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> & subProgram, 00165 <a class="code" href="classPPipeChannel.html#z213_0">OpenMode</a> mode = <a class="code" href="classPPipeChannel.html#z213_0s2">ReadWrite</a>,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -