fstream 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /******************************************************************************/
  2. /* This file was taken from STLport <www.stlport.org> and modified by */
  3. /* Texas Instruments. */
  4. /******************************************************************************/
  5. /*
  6. * Copyright (c) 1999
  7. * Silicon Graphics Computer Systems, Inc.
  8. *
  9. * Copyright (c) 1999
  10. * Boris Fomitchev
  11. *
  12. * Copyright (c) 2014-2014 Texas Instruments Incorporated
  13. *
  14. * This material is provided "as is", with absolutely no warranty expressed
  15. * or implied. Any use is at your own risk.
  16. *
  17. * Permission to use or copy this software for any purpose is hereby granted
  18. * without fee, provided the above notices are retained on all copies.
  19. * Permission to modify the code and to distribute modified code is granted,
  20. * provided the above notices are retained, and a notice that the code was
  21. * modified is included with the above copyright notice.
  22. *
  23. */
  24. // This header defines classes basic_filebuf, basic_ifstream,
  25. // basic_ofstream, and basic_fstream. These classes represent
  26. // streambufs and streams whose sources or destinations are files.
  27. #ifndef _STLP_FSTREAM
  28. #ifndef _STLP_OUTERMOST_HEADER_ID
  29. # define _STLP_OUTERMOST_HEADER_ID 0x1025
  30. # include <s__prolog.h>
  31. # define _STLP_FSTREAM
  32. #endif
  33. #if (_STLP_OUTERMOST_HEADER_ID == 0x1025) && \
  34. !(defined (_STLP_NO_IOSTREAMS) && defined (_STLP_IMPORT_VENDOR_STD))
  35. # include <s__ioserr.h>
  36. # ifndef _STLP_INTERNAL_FSTREAM_H
  37. # include <s__fstream.h>
  38. # endif
  39. #endif
  40. #if (_STLP_OUTERMOST_HEADER_ID != 0x1025) || defined (_STLP_IMPORT_VENDOR_STD)
  41. # if defined (_STLP_HAS_INCLUDE_NEXT)
  42. # include_next <fstream>
  43. # else
  44. # include _STLP_NATIVE_HEADER(fstream)
  45. # endif
  46. #endif
  47. #if (_STLP_OUTERMOST_HEADER_ID == 0x1025)
  48. # include <s__epilog.h>
  49. # undef _STLP_OUTERMOST_HEADER_ID
  50. #endif
  51. #endif /* _STLP_FSTREAM */
  52. // Local Variables:
  53. // mode:C++
  54. // End: