sstream 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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_stringbuf, basic_istringstream,
  25. // basic_ostringstream, and basic_stringstream. These classes
  26. // represent streamsbufs and streams whose sources or destinations are
  27. // C++ strings.
  28. #ifndef _STLP_SSTREAM
  29. #ifndef _STLP_OUTERMOST_HEADER_ID
  30. # define _STLP_OUTERMOST_HEADER_ID 0x1059
  31. # include <s__prolog.h>
  32. # define _STLP_SSTREAM
  33. #endif
  34. #if (_STLP_OUTERMOST_HEADER_ID == 0x1059) && \
  35. !(defined (_STLP_NO_IOSTREAMS) && defined (_STLP_IMPORT_VENDOR_STD))
  36. # include <s__ioserr.h>
  37. # ifndef _STLP_INTERNAL_SSTREAM
  38. # include <s__sstream.h>
  39. # endif
  40. #endif
  41. #if (_STLP_OUTERMOST_HEADER_ID != 0x1059) || defined (_STLP_IMPORT_VENDOR_STD)
  42. # if defined (_STLP_HAS_INCLUDE_NEXT)
  43. # include_next <sstream>
  44. # else
  45. # include _STLP_NATIVE_HEADER(sstream)
  46. # endif
  47. #endif
  48. #if (_STLP_OUTERMOST_HEADER_ID == 0x1059)
  49. # include <s__epilog.h>
  50. # undef _STLP_OUTERMOST_HEADER_ID
  51. #endif
  52. #endif /* _STLP_SSTREAM */
  53. // Local Variables:
  54. // mode:C++
  55. // End: