epoc32/include/tools/stlport/iostream
branchSymbian3
changeset 4 837f303aceeb
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/tools/stlport/iostream	Wed Mar 31 12:33:34 2010 +0100
     1.3 @@ -0,0 +1,92 @@
     1.4 +/*
     1.5 + * Copyright (c) 1999
     1.6 + * Silicon Graphics Computer Systems, Inc.
     1.7 + *
     1.8 + * Copyright (c) 1999
     1.9 + * Boris Fomitchev
    1.10 + *
    1.11 + * This material is provided "as is", with absolutely no warranty expressed
    1.12 + * or implied. Any use is at your own risk.
    1.13 + *
    1.14 + * Permission to use or copy this software for any purpose is hereby granted
    1.15 + * without fee, provided the above notices are retained on all copies.
    1.16 + * Permission to modify the code and to distribute modified code is granted,
    1.17 + * provided the above notices are retained, and a notice that the code was
    1.18 + * modified is included with the above copyright notice.
    1.19 + *
    1.20 + */
    1.21 +
    1.22 +#ifndef _STLP_IOSTREAM
    1.23 +#define _STLP_IOSTREAM
    1.24 +
    1.25 +# ifndef _STLP_OUTERMOST_HEADER_ID
    1.26 +#  define _STLP_OUTERMOST_HEADER_ID 0x1037
    1.27 +#  include <stl/_prolog.h>
    1.28 +# endif
    1.29 +
    1.30 +# ifdef _STLP_PRAGMA_ONCE
    1.31 +#  pragma once
    1.32 +# endif
    1.33 +
    1.34 +#include <stl/_ioserr.h>
    1.35 +
    1.36 +#ifdef _STLP_REDIRECT_STDSTREAMS
    1.37 +// for ofstream redirection
    1.38 +# include <fstream>
    1.39 +#endif
    1.40 +
    1.41 +#include <stl/_iosfwd.h>
    1.42 +#include <stl/_istream.h>
    1.43 +
    1.44 +_STLP_BEGIN_NAMESPACE
    1.45 +
    1.46 +#ifndef _STLP_USE_NAMESPACES
    1.47 +// in case of SGI iostreams, we have to rename our streams not to clash with those
    1.48 +// provided in native lib
    1.49 +# define cin _STLP_cin
    1.50 +# define cout _STLP_cout
    1.51 +# define cerr _STLP_cerr
    1.52 +# define clog _STLP_clog
    1.53 +#endif
    1.54 +
    1.55 +// Note: cin and wcin are both associated with stdio.  The C standard
    1.56 +// (Amendment 1, section 4.6.2.1) says that it is an error to mix
    1.57 +// wide- and narrow-oriented I/O on the same stream.  This implies
    1.58 +// that it is an error to use both cin and wcin in the same C++
    1.59 +// program; the same applies to cout and wcout, and cerr/clog and
    1.60 +// wcerr/wclog.
    1.61 +
    1.62 +# ifdef _STLP_REDIRECT_STDSTREAMS
    1.63 +extern _STLP_DECLSPEC istream cin;
    1.64 +extern _STLP_DECLSPEC ofstream cout;
    1.65 +extern _STLP_DECLSPEC ofstream cerr;
    1.66 +extern _STLP_DECLSPEC ofstream clog;
    1.67 +# else
    1.68 +extern _STLP_DECLSPEC istream cin;
    1.69 +extern _STLP_DECLSPEC ostream cout;
    1.70 +extern _STLP_DECLSPEC ostream cerr;
    1.71 +extern _STLP_DECLSPEC ostream clog;
    1.72 +# endif
    1.73 +
    1.74 +# ifndef _STLP_NO_WCHAR_T
    1.75 +extern _STLP_DECLSPEC wistream wcin;
    1.76 +extern _STLP_DECLSPEC wostream wcout;
    1.77 +extern _STLP_DECLSPEC wostream wcerr;
    1.78 +extern _STLP_DECLSPEC wostream wclog;
    1.79 +# endif
    1.80 +
    1.81 +_STLP_END_NAMESPACE
    1.82 +
    1.83 +//# elif defined ( _STLP_USE_NO_IOSTREAMS )
    1.84 +//#  include <stl/_null_stream.h>
    1.85 +
    1.86 +# if (_STLP_OUTERMOST_HEADER_ID == 0x1037)
    1.87 +#  include <stl/_epilog.h>
    1.88 +#  undef _STLP_OUTERMOST_HEADER_ID
    1.89 +# endif
    1.90 +
    1.91 +#endif /* _STLP_IOSTREAM */
    1.92 +
    1.93 +// Local Variables:
    1.94 +// mode:C++
    1.95 +// End: