home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / stream.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-16  |  4.5 KB  |  105 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.    /*  VisualAge for C++ for Windows, Version 3.5                      */
  14.    /*    Licensed Material - Property of IBM                           */
  15.    /*                                                                  */
  16.    /*  5801-ARR and Other Materials                                    */
  17.    /*                                                                  */
  18.    /*  (c) Copyright IBM Corp 1991, 1996. All rights reserved.         */
  19.    /*                                                                  */
  20.    /*                                                                  */
  21.    /*                                                                  */
  22.    /*  Licensed Materials - Property of USL                            */
  23.    /*                                                                  */
  24.    /*  Standard Class Library Version 3.0                              */
  25.    /*  Copyright (C) Unix System Laboratories Inc. 1991.               */
  26.    /*  All rights reserved                                             */
  27.    /*                                                                  */
  28.    /********************************************************************/
  29.  
  30.    /**************************************************************************/
  31.    /*  C++ source for the C++ Language System, Release 3.0.  This product    */
  32.    /*  is a new release of the original cfront developed in the computer     */
  33.    /*  science research center of AT&T Bell Laboratories.                    */
  34.    /*                                                                        */
  35.    /*  Copyright (c) 1991 AT&T and UNIX System Laboratories, Inc.            */
  36.    /*  Copyright (c) 1984, 1989, 1990 AT&T.  All Rights Reserved.            */
  37.    /*                                                                        */
  38.    /*  THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE of AT&T and UNIX System   */
  39.    /*  Laboratories, Inc.  The copyright notice above does not evidence      */
  40.    /*  any actual or intended publication of such source code.               */
  41.    /*                                                                        */
  42.    /*  UNIX is a registered trademark of UNIX System Laboratories, Inc.      */
  43.    /*                                                                        */
  44.    /*  ident "@(#)ctrans:incl-master/const-headers/stream.h  1.4"            */
  45.    /**************************************************************************/
  46.  
  47.    #ifndef _IMPORT
  48.       #ifdef __IMPORTLIB__
  49.          #define _IMPORT _Import
  50.       #else
  51.          #define _IMPORT
  52.       #endif
  53.    #endif
  54.  
  55.    #include <iostream.h>
  56.    #include <iomanip.h>
  57.    #include <stdiostr.h>
  58.    #include <fstream.h>
  59.            /* for filebuf */
  60.  
  61.    #ifndef NULL
  62.    #define NULL    0
  63.    #endif
  64.  
  65.    extern char* _IMPORT oct(long, int =0);
  66.    extern char* _IMPORT dec(long, int =0);
  67.    extern char* _IMPORT hex(long, int =0);
  68.  
  69.    extern char* _IMPORT chr(int, int =0); /* chr(0) is the empty string "" */
  70.    extern char* _IMPORT str(const char*, int =0);
  71.    extern char* _IMPORT form(const char* ...);
  72.                            /* printf format
  73.                             * Things may go terribly wrong (maybe even core
  74.                             * dumps, if form tries to create a string with
  75.                             * more than "max_field_width" characters. */
  76.  
  77.    /* WS used to be a special in streams. The WS manipulator
  78.     * is implemented differently but may be extracted from an istream
  79.     * with the same effect as the old form.
  80.     */
  81.  
  82.    extern istream& _IMPORT WS(istream&) ;
  83.    extern void _IMPORT eatwhite(istream&) ;
  84.  
  85.    static const int input = (ios::in) ;
  86.    static const int output = (ios::out) ;
  87.    static const int append = (ios::app) ;
  88.    static const int atend = (ios::ate) ;
  89.    static const int _good = (ios::goodbit) ;
  90.    static const int _bad = (ios::badbit) ;
  91.    static const int _fail = (ios::failbit) ;
  92.    static const int _eof = (ios::eofbit) ;
  93.  
  94.    typedef ios::io_state state_value ;
  95.  
  96. #endif
  97.  
  98. #pragma info( none )
  99. #ifndef __CHKHDR__
  100.    #pragma info( restore )
  101. #endif
  102. #pragma info( restore )
  103.  
  104.  
  105.