home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cset21v1.zip / IBMCPP / INCLUDE / STREAM.H < prev    next >
Text File  |  1993-09-17  |  4KB  |  94 lines

  1. #pragma info( none )
  2. #ifndef __CHKHDR__
  3.    #pragma info( none )
  4. #endif
  5. #pragma info( restore )
  6.  
  7. #ifndef __stream_h
  8.    #define __stream_h
  9.  
  10.    /********************************************************************/
  11.    /*  <stream.h> header file                                          */
  12.    /*                                                                  */
  13.    /*  Licensed Materials - Property of IBM                            */
  14.    /*                                                                  */
  15.    /*  IBM C/C++ Tools Version 2.01                                    */
  16.    /*  Copyright (C) International Business Machines Corp., 1991, 1993.*/
  17.    /*  All rights reserved                                             */
  18.    /*                                                                  */
  19.    /*                                                                  */
  20.    /*                                                                  */
  21.    /*  Licensed Materials - Property of USL                            */
  22.    /*                                                                  */
  23.    /*  Standard Class Library Version 3.0                              */
  24.    /*  Copyright (C) Unix System Laboratories Inc. 1991.               */
  25.    /*  All rights reserved                                             */
  26.    /*                                                                  */
  27.    /********************************************************************/
  28.  
  29.    /**************************************************************************/
  30.    /*  C++ source for the C++ Language System, Release 3.0.  This product    */
  31.    /*  is a new release of the original cfront developed in the computer     */
  32.    /*  science research center of AT&T Bell Laboratories.                    */
  33.    /*                                                                        */
  34.    /*  Copyright (c) 1991 AT&T and UNIX System Laboratories, Inc.            */
  35.    /*  Copyright (c) 1984, 1989, 1990 AT&T.  All Rights Reserved.            */
  36.    /*                                                                        */
  37.    /*  THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE of AT&T and UNIX System   */
  38.    /*  Laboratories, Inc.  The copyright notice above does not evidence      */
  39.    /*  any actual or intended publication of such source code.               */
  40.    /*                                                                        */
  41.    /*  UNIX is a registered trademark of UNIX System Laboratories, Inc.      */
  42.    /*                                                                        */
  43.    /*  ident "@(#)ctrans:incl-master/const-headers/stream.h  1.4"            */
  44.    /**************************************************************************/
  45.  
  46.    #include <iostream.h>
  47.    #include <iomanip.h>
  48.    #include <stdiostr.h>
  49.    #include <fstream.h>
  50.            /* for filebuf */
  51.  
  52.    #ifndef NULL
  53.    #define NULL    0
  54.    #endif
  55.  
  56.    extern char*  oct(long, int =0);
  57.    extern char*  dec(long, int =0);
  58.    extern char*  hex(long, int =0);
  59.  
  60.    extern char*  chr(int, int =0); /* chr(0) is the empty string "" */
  61.    extern char*  str(const char*, int =0);
  62.    extern char*  form(const char* ...);
  63.                            /* printf format
  64.                             * Things may go terribly wrong (maybe even core
  65.                             * dumps, if form tries to create a string with
  66.                             * more than "max_field_width" characters. */
  67.  
  68.    /* WS used to be a special in streams. The WS manipulator
  69.     * is implemented differently but may be extracted from an istream
  70.     * with the same effect as the old form.
  71.     */
  72.  
  73.    extern istream& WS(istream&) ;
  74.    extern void eatwhite(istream&) ;
  75.  
  76.    static const int input = (ios::in) ;
  77.    static const int output = (ios::out) ;
  78.    static const int append = (ios::app) ;
  79.    static const int atend = (ios::ate) ;
  80.    static const int _good = (ios::goodbit) ;
  81.    static const int _bad = (ios::badbit) ;
  82.    static const int _fail = (ios::failbit) ;
  83.    static const int _eof = (ios::eofbit) ;
  84.  
  85.    typedef ios::io_state state_value ;
  86.  
  87. #endif
  88.  
  89. #pragma info( none )
  90. #ifndef __CHKHDR__
  91.    #pragma info( restore )
  92. #endif
  93. #pragma info( restore )
  94.