home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Compilers / digital marsC compier / dm / include / Stream.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-01-02  |  2.0 KB  |  80 lines

  1. #if __SC__ || __RCC__
  2. #pragma once
  3. #endif
  4.  
  5. #ifndef _STREAM_H_
  6. #define _STREAM_H_
  7.  
  8. /*
  9.  *    stream.h -- provide a migration path from old streams to iostreams
  10.  *
  11.  * $Id: stream.h,v 1.1.1.1 1997/01/02 19:16:44 smarx Exp $
  12.  *
  13.  ****************************************************************************
  14.  *
  15.  * Rogue Wave Software, Inc.
  16.  * P.O. Box 2328
  17.  * Corvallis, OR 97339
  18.  * Voice: (503) 754-3010    FAX: (503) 757-6650
  19.  *
  20.  * Copyright (C) 1991,  1993, 1994.
  21.  * This software is subject to copyright protection under the laws of 
  22.  * the United States and other countries.
  23.  * ALL RIGHTS RESERVED
  24.  *
  25.  ***************************************************************************
  26.  *
  27.  * $Log: stream.h,v $
  28.  * Revision 1.1.1.1  1997/01/02 19:16:44  smarx
  29.  * cafe12
  30.  *
  31.  * 
  32.  *    Rev 1.3   08 Oct 1994 14:11:56   BUSHNELL
  33.  * Added pragma once for faster compilations
  34.  * 
  35.  *    Rev 1.2   23 Jun 1994 15:57:52   BUSHNELL
  36.  * Changed include to have only 8 characters for NT builds of the RTL
  37.  * 
  38.  *    Rev 1.1   02 Jun 1994 21:35:44   bushnell
  39.  * added ifdef so that MS RC will not include header twice
  40.  * 
  41.  
  42.  *    Rev 1.0   20 Apr 1994 17:46:20   thompson                   
  43.  
  44.  * Initial revision.
  45.  
  46.  * Revision 1.2  1994/04/14  00:50:17  vriezen
  47.  * Updated copywrite, added ID and LOG and changed comments to indicate .cpp filename
  48.  *
  49.  *
  50.  * 
  51.  */
  52.  
  53.  
  54.  
  55. #include <iostream.h>
  56. #include <iomanip.h>
  57. #include <stdiostr.h>
  58. #include <fstream.h>
  59.  
  60. /*
  61.  * Simulate the whitespace object in old streams.
  62.  * WS is an istream manipulator which eats white space, having the
  63.  * same purpose as struct WS in old streams.
  64.  */
  65. istream& WS(istream&);
  66. void eatwhite(istream&);
  67.  
  68. const int input  = ios::in;
  69. const int output = ios::out;
  70. const int append = ios::app;
  71. const int atend  = ios::ate;
  72. const int _good  = ios::goodbit;
  73. const int _bad   = ios::badbit;
  74. const int _fail  = ios::failbit;
  75. const int _eof   = ios::eofbit;
  76.  
  77. typedef ios::io_state state_value;
  78.  
  79. #endif /* _STREAM_H_ */
  80.