home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / stl453up.zip / stl453fx / stlport / fstream < prev    next >
Text File  |  2002-04-29  |  2KB  |  58 lines

  1. /*
  2.  * Copyright (c) 1999
  3.  * Silicon Graphics Computer Systems, Inc.
  4.  *
  5.  * Copyright (c) 1999 
  6.  * Boris Fomitchev
  7.  *
  8.  * This material is provided "as is", with absolutely no warranty expressed
  9.  * or implied. Any use is at your own risk.
  10.  *
  11.  * Permission to use or copy this software for any purpose is hereby granted 
  12.  * without fee, provided the above notices are retained on all copies.
  13.  * Permission to modify the code and to distribute modified code is granted,
  14.  * provided the above notices are retained, and a notice that the code was
  15.  * modified is included with the above copyright notice.
  16.  *
  17.  */ 
  18.  
  19.  
  20. // This header defines classes basic_filebuf, basic_ifstream,
  21. // basic_ofstream, and basic_fstream.  These classes represent
  22. // streambufs and streams whose sources or destinations are files.
  23.  
  24. #ifndef _STLP_FSTREAM
  25. #define _STLP_FSTREAM
  26.  
  27. # ifndef _STLP_OUTERMOST_HEADER_ID
  28. #  define _STLP_OUTERMOST_HEADER_ID 0x1025
  29. #  include <stl/_prolog.h>
  30. # endif
  31.  
  32. # if defined (_STLP_OWN_IOSTREAMS)
  33. #  include <stl/_fstream.h>
  34.  
  35. # ifndef __LOCALE_INITIALIZED
  36. #  define __LOCALE_INITIALIZED
  37. _STLP_BEGIN_NAMESPACE
  38. // Global initializer object, to ensure construction of static objects.
  39. static ios_base::_Loc_init _LocInit;
  40. _STLP_END_NAMESPACE
  41. # endif
  42.  
  43. # elif !defined(_STLP_USE_NO_IOSTREAMS)
  44. #  include <wrap_std/fstream>
  45. # endif
  46.  
  47. # if (_STLP_OUTERMOST_HEADER_ID == 0x1025)
  48. #  include <stl/_epilog.h>
  49. #  undef _STLP_OUTERMOST_HEADER_ID
  50. # endif
  51.  
  52. #endif /* _STLP_FSTREAM */
  53.  
  54.  
  55. // Local Variables:
  56. // mode:C++
  57. // End:
  58.