epoc32/include/stdapis/stlport/strstream.h
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
equal deleted inserted replaced
1:666f914201fb 2:2fe1408b6811
     1 strstream.h
     1 /*
       
     2  * Copyright (c) 1999 
       
     3  * Boris Fomitchev
       
     4  *
       
     5  * This material is provided "as is", with absolutely no warranty expressed
       
     6  * or implied. Any use is at your own risk.
       
     7  *
       
     8  * Permission to use or copy this software for any purpose is hereby granted 
       
     9  * without fee, provided the above notices are retained on all copies.
       
    10  * Permission to modify the code and to distribute modified code is granted,
       
    11  * provided the above notices are retained, and a notice that the code was
       
    12  * modified is included with the above copyright notice.
       
    13  *
       
    14  */
       
    15 
       
    16 #ifndef _STLP_STRSTREAM_H
       
    17 # define _STLP_STRSTREAM_H
       
    18 
       
    19 # ifndef _STLP_OUTERMOST_HEADER_ID
       
    20 #  define _STLP_OUTERMOST_HEADER_ID 0x2071
       
    21 #  include <stl/_prolog.h>
       
    22 # endif
       
    23 
       
    24 # if defined ( _STLP_USE_NEW_IOSTREAMS )
       
    25 
       
    26 // fbp - if we are going to use that consistently, let's do it
       
    27 #ifdef __BORLANDC__
       
    28 #  include <strstream.>
       
    29 #else
       
    30 #  include <strstream>
       
    31 #endif
       
    32 
       
    33 # include  <iostream.h>
       
    34 
       
    35 
       
    36 # ifndef _STLP_HAS_NO_NAMESPACES
       
    37 
       
    38 #  ifdef _STLP_BROKEN_USING_DIRECTIVE
       
    39 
       
    40 using namespace _STLP_STD;
       
    41 
       
    42 #  else
       
    43 
       
    44 using _STLP_STD::strstreambuf;
       
    45 using _STLP_STD::istrstream;
       
    46 using _STLP_STD::ostrstream;
       
    47 using _STLP_STD::strstream;
       
    48 
       
    49 #  endif /* _STLP_BROKEN_USING_DIRECTIVE */
       
    50 
       
    51 # endif /* _STLP_HAS_NO_NAMESPACES */
       
    52 
       
    53 # else
       
    54 
       
    55 
       
    56 // just include old-style strstream.h
       
    57 #  if defined (_MSC_VER) && (_MSC_VER <= 1200)
       
    58 #   include _STLP_NATIVE_OLD_STREAMS_HEADER(strstrea.h)
       
    59 #  else
       
    60 #   include _STLP_NATIVE_OLD_STREAMS_HEADER(strstream.h)
       
    61 #  endif
       
    62 
       
    63 # endif
       
    64 
       
    65 # if (_STLP_OUTERMOST_HEADER_ID == 0x2071)
       
    66 #  include <stl/_epilog.h>
       
    67 #  undef _STLP_OUTERMOST_HEADER_ID
       
    68 # endif
       
    69 
       
    70 #endif /* _STLP_STRSTREAM_H */
       
    71 
       
    72 // Local Variables:
       
    73 // mode:C++
       
    74 // End:
       
    75