os/ossrv/genericopenlibs/cppstdlib/stl/stlport/iostream
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/genericopenlibs/cppstdlib/stl/stlport/iostream	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,127 @@
     1.4 +/*
     1.5 + * Portions Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
     1.6 + *
     1.7 + * Copyright (c) 1999
     1.8 + * Silicon Graphics Computer Systems, Inc.
     1.9 + *
    1.10 + * Copyright (c) 1999
    1.11 + * Boris Fomitchev
    1.12 + *
    1.13 + * This material is provided "as is", with absolutely no warranty expressed
    1.14 + * or implied. Any use is at your own risk.
    1.15 + *
    1.16 + * Permission to use or copy this software for any purpose is hereby granted
    1.17 + * without fee, provided the above notices are retained on all copies.
    1.18 + * Permission to modify the code and to distribute modified code is granted,
    1.19 + * provided the above notices are retained, and a notice that the code was
    1.20 + * modified is included with the above copyright notice.
    1.21 + *
    1.22 + */
    1.23 +
    1.24 +#ifndef _STLP_IOSTREAM
    1.25 +#define _STLP_IOSTREAM
    1.26 +
    1.27 +# ifndef _STLP_OUTERMOST_HEADER_ID
    1.28 +#  define _STLP_OUTERMOST_HEADER_ID 0x1037
    1.29 +#  include <stl/_prolog.h>
    1.30 +# endif
    1.31 +
    1.32 +# ifdef _STLP_PRAGMA_ONCE
    1.33 +#  pragma once
    1.34 +# endif
    1.35 +
    1.36 +#include <stl/_ioserr.h>
    1.37 +
    1.38 +#ifdef _STLP_REDIRECT_STDSTREAMS
    1.39 +// for ofstream redirection
    1.40 +# include <fstream>
    1.41 +#endif
    1.42 +
    1.43 +#include <stl/_iosfwd.h>
    1.44 +#include <stl/_istream.h>
    1.45 +
    1.46 +_STLP_BEGIN_NAMESPACE
    1.47 +
    1.48 +#ifndef _STLP_USE_NAMESPACES
    1.49 +// in case of SGI iostreams, we have to rename our streams not to clash with those
    1.50 +// provided in native lib
    1.51 +# define cin _STLP_cin
    1.52 +# define cout _STLP_cout
    1.53 +# define cerr _STLP_cerr
    1.54 +# define clog _STLP_clog
    1.55 +#endif
    1.56 +
    1.57 +// Note: cin and wcin are both associated with stdio.  The C standard
    1.58 +// (Amendment 1, section 4.6.2.1) says that it is an error to mix
    1.59 +// wide- and narrow-oriented I/O on the same stream.  This implies
    1.60 +// that it is an error to use both cin and wcin in the same C++
    1.61 +// program; the same applies to cout and wcout, and cerr/clog and
    1.62 +// wcerr/wclog.
    1.63 +
    1.64 +# ifdef _STLP_REDIRECT_STDSTREAMS
    1.65 +extern _STLP_DECLSPEC istream cin;
    1.66 +extern _STLP_DECLSPEC ofstream cout;
    1.67 +extern _STLP_DECLSPEC ofstream cerr;
    1.68 +extern _STLP_DECLSPEC ofstream clog;
    1.69 +# elif defined(__SYMBIAN32__WSD__) || defined (__SYMBIAN32__NO_STATIC_IMPORTS__)
    1.70 +_STLP_DECLSPEC ostream& get_cerr();
    1.71 +_STLP_DECLSPEC ostream& get_cout();
    1.72 +_STLP_DECLSPEC ostream& get_clog();
    1.73 +_STLP_DECLSPEC istream& get_cin(); 
    1.74 +#   if defined (__SYMBIAN32__WSD__) || !defined(_STLP_DESIGNATED_DLL)
    1.75 +/* For the emulator, these definitions are used by the user as well as the STLPort library*/
    1.76 +/* For ARM platforms, user gets references to streams via function calls while the library uses the 
    1.77 +   objects internally.
    1.78 +*/
    1.79 +#define cerr get_cerr()
    1.80 +#define cin  get_cin()
    1.81 +#define cout get_cout()
    1.82 +#define clog get_clog()
    1.83 +#   endif //__SYMBIAN32__WSD__ || _STLP_DESIGNATED_DLL
    1.84 +#else
    1.85 +extern _STLP_DECLSPEC istream cin;
    1.86 +extern _STLP_DECLSPEC ostream cout;
    1.87 +extern _STLP_DECLSPEC ostream cerr; 
    1.88 +extern _STLP_DECLSPEC ostream clog;
    1.89 +# endif //_STLP_REDIRECT_STDSTREAMS
    1.90 +
    1.91 +# ifndef _STLP_NO_WCHAR_T
    1.92 +# if defined(__SYMBIAN32__WSD__) || defined (__SYMBIAN32__NO_STATIC_IMPORTS__)
    1.93 +_STLP_DECLSPEC wostream& get_wcerr();
    1.94 +_STLP_DECLSPEC wostream& get_wcout();
    1.95 +_STLP_DECLSPEC wostream& get_wclog();
    1.96 +_STLP_DECLSPEC wistream& get_wcin(); 
    1.97 +
    1.98 +#   if defined (__SYMBIAN32__WSD__) || !defined(_STLP_DESIGNATED_DLL)
    1.99 +/* For the emulator, these definitions are used by the user as well as the STLPort library*/
   1.100 +/* For ARM platforms, user gets references to streams via function calls while the library uses the 
   1.101 +   objects internally.
   1.102 +*/
   1.103 +#define wcerr 	get_wcerr()
   1.104 +#define wcin 	get_wcin()
   1.105 +#define wcout	get_wcout()
   1.106 +#define wclog 	get_wclog()
   1.107 +#   endif //__SYMBIAN32__WSD__ || _STLP_DESIGNATED_DLL
   1.108 +#else //__SYMBIAN32__WSD__
   1.109 +extern _STLP_DECLSPEC wistream wcin;
   1.110 +extern _STLP_DECLSPEC wostream wcout;
   1.111 +extern _STLP_DECLSPEC wostream wcerr;
   1.112 +extern _STLP_DECLSPEC wostream wclog;
   1.113 +#endif //__SYMBIAN32__WSD__ || __SYMBIAN32__NO_STATIC_IMPORTS__
   1.114 +# endif  //_STLP_NO_WCHAR_T
   1.115 +
   1.116 +_STLP_END_NAMESPACE
   1.117 +
   1.118 +//# elif defined ( _STLP_USE_NO_IOSTREAMS )
   1.119 +//#  include <stl/_null_stream.h>
   1.120 +
   1.121 +# if (_STLP_OUTERMOST_HEADER_ID == 0x1037)
   1.122 +#  include <stl/_epilog.h>
   1.123 +#  undef _STLP_OUTERMOST_HEADER_ID
   1.124 +# endif
   1.125 +
   1.126 +#endif /* _STLP_IOSTREAM */
   1.127 +
   1.128 +// Local Variables:
   1.129 +// mode:C++
   1.130 +// End: