home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Tools - Objects / MPW C++ / MPW C++ PQR4 / Interfaces / CIncludes / pipestream.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-04-30  |  1.0 KB  |  43 lines  |  [TEXT/MPS ]

  1. /*ident    "@(#)ctrans:incl/pipestream.h    1.1.1.1" */
  2. /**************************************************************************
  3.                         Copyright (c) 1984 AT&T
  4.                           All Rights Reserved   
  5.  
  6.         THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
  7.       
  8.         The copyright notice above does not evidence any        
  9.         actual or intended publication of such source code.
  10.  
  11. *****************************************************************************/
  12. #ifndef __PIPESTREAM__
  13. #define __PIPESTREAM__
  14.  
  15. #ifndef __IOSTREAM__
  16. #include <iostream.h>
  17. #endif
  18.  
  19. class pipebuf : public streambuf {
  20.     virtual int    overflow(int);    
  21.     virtual int    underflow();
  22.     virtual int    pbackfail(int);
  23.     void         normalize() ;
  24. public:
  25.             pipebuf() ;
  26.             pipebuf(char*  p, int l) ;
  27.     int        full() ;
  28.     int        empty() ;
  29.     virtual streambuf*
  30.             setbuf(char*  p, int l, int c) ;
  31.     
  32. };
  33.  
  34. class pipestream : public iostream {
  35.     pipebuf        buf ;
  36. public:
  37.             pipestream();
  38.             pipestream(char*  p, int l) ;
  39.     pipebuf*    rdbuf() ;
  40.     } ;
  41.  
  42. #endif
  43.