home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ocl150a.zip / OCL / Source / ONPipe.cpp < prev    next >
C/C++ Source or Header  |  1996-08-12  |  2KB  |  87 lines

  1. // OCL - OS/2 Class Library
  2. // (c) Cubus 1995
  3. // All Rights Reserved
  4. // ONPipe.cpp
  5.  
  6. // members of ONPipe
  7.  
  8. /*
  9.  * Redistribution and use in source and binary forms, with or without
  10.  * modification, are permitted provided that the following conditions
  11.  * are met:
  12.  * 1. Redistributions of source code must retain the above copyright
  13.  *    notice, this list of conditions and the following disclaimer.
  14.  * 2. Neither the name Cubus nor the name Team OCL may be used to
  15.  *    endorse or promote products derived from this software
  16.  *    without specific prior written permission.
  17.  * 3. See OCL.INF for a detailed copyright notice.
  18.  *
  19.  *              THIS SOFTWARE IS PROVIDED ``AS IS'' AND
  20.  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  21.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  22.  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  23.  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  24.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  25.  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  26.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  27.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  28.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  29.  * SUCH DAMAGE.
  30.  */
  31.  
  32.  
  33. // $Header: W:/Projects/OCL/Source/rcs/ONPipe.cpp 1.50 1996/08/11 23:49:24 B.STEIN Release $
  34.  
  35. #define __OCL_SOURCE__
  36.  
  37. #define OINCL_OSTRING
  38. #define OINCL_BASE
  39.  
  40. #include <ocl.hpp>
  41. #include <ONPipe.hpp>
  42.  
  43. #if defined(__EMX__)
  44.   template class  OList<PipeStatus>;
  45. #endif
  46.  
  47.  
  48. // members of OPipe
  49.  
  50.  
  51. ONPipe::ONPipe() 
  52.   : close(FALSE), 
  53.     Buffer(NULL), 
  54.     BufSize(0) 
  55.   {}
  56.  
  57.  
  58. ONPipe::~ONPipe()
  59.   {}
  60.  
  61.  
  62. PSZ ONPipe::isOfType() const
  63.  return("ONPipe"); 
  64. }
  65.  
  66.  
  67. void ONPipe::setOpenMode(const ULONG mode)
  68. {
  69.  oMode = mode;
  70. }
  71.  
  72.  
  73. void ONPipe::setPipeMode(const ULONG mode)
  74. {
  75.  pMode = mode;
  76. }
  77.  
  78.  
  79. void ONPipe::setTimeOut(const ULONG timeout)
  80. {
  81.  timeOut = timeout;
  82. }
  83.  
  84.  
  85. // end of source
  86.