1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/stdapis/stlportv5/iostream.h Wed Mar 31 12:33:34 2010 +0100
1.3 @@ -0,0 +1,106 @@
1.4 +/*
1.5 + * Copyright (c) 1999
1.6 + * Boris Fomitchev
1.7 + *
1.8 + * This material is provided "as is", with absolutely no warranty expressed
1.9 + * or implied. Any use is at your own risk.
1.10 + *
1.11 + * Permission to use or copy this software for any purpose is hereby granted
1.12 + * without fee, provided the above notices are retained on all copies.
1.13 + * Permission to modify the code and to distribute modified code is granted,
1.14 + * provided the above notices are retained, and a notice that the code was
1.15 + * modified is included with the above copyright notice.
1.16 + *
1.17 + */
1.18 +
1.19 +#ifndef _STLP_IOSTREAM_H
1.20 +#define _STLP_IOSTREAM_H
1.21 +
1.22 +#ifndef _STLP_OUTERMOST_HEADER_ID
1.23 +# define _STLP_OUTERMOST_HEADER_ID 0x2035
1.24 +# include <stl/_prolog.h>
1.25 +#endif
1.26 +
1.27 +#include <iostream>
1.28 +
1.29 +// Those should be included all separately, as they do contain using declarations
1.30 +#include <streambuf.h>
1.31 +#include <ostream.h>
1.32 +#include <istream.h>
1.33 +
1.34 +#ifndef _STLP_HAS_NO_NAMESPACES
1.35 +
1.36 +# ifdef _STLP_BROKEN_USING_DIRECTIVE
1.37 +_STLP_USING_NAMESPACE(stlport)
1.38 +# else
1.39 +using _STLP_STD::cin;
1.40 +using _STLP_STD::cout;
1.41 +using _STLP_STD::clog;
1.42 +using _STLP_STD::cerr;
1.43 +using _STLP_STD::iostream;
1.44 +# ifndef _STLP_NO_WCHAR_T
1.45 +using _STLP_STD::wcin;
1.46 +using _STLP_STD::wcout;
1.47 +using _STLP_STD::wclog;
1.48 +using _STLP_STD::wcerr;
1.49 +# endif
1.50 +# endif
1.51 +#endif /* _STLP_HAS_NO_NAMESPACES */
1.52 +
1.53 +// Obsolete classes for old-style backwards compatibility
1.54 +
1.55 +
1.56 +class istream_withassign : public istream {
1.57 + public:
1.58 + istream_withassign() : istream((streambuf*)0) {}
1.59 + ~istream_withassign() {}
1.60 +
1.61 + istream_withassign& operator=(istream& __s) {
1.62 + ios::init(__s.rdbuf());
1.63 + return *this;
1.64 + }
1.65 + istream_withassign& operator=(streambuf* __s) {
1.66 + ios::init(__s);
1.67 + return *this;
1.68 + }
1.69 +};
1.70 +
1.71 +class ostream_withassign : public ostream {
1.72 + public:
1.73 + ostream_withassign() : ostream((streambuf*)0) {}
1.74 + ~ostream_withassign() {}
1.75 +
1.76 + ostream_withassign& operator=(ostream& __s) {
1.77 + ios::init(__s.rdbuf());
1.78 + return *this;
1.79 + }
1.80 + ostream_withassign& operator=(streambuf* __s) {
1.81 + ios::init(__s);
1.82 + return *this;
1.83 + }
1.84 +};
1.85 +
1.86 +class iostream_withassign : public iostream {
1.87 + public:
1.88 + iostream_withassign() : iostream((streambuf*)0) {}
1.89 + ~iostream_withassign() {}
1.90 + iostream_withassign & operator=(ios& __i) {
1.91 + ios::init(__i.rdbuf());
1.92 + return *this;
1.93 + }
1.94 + iostream_withassign & operator=(streambuf* __s) {
1.95 + ios::init(__s);
1.96 + return *this;
1.97 + }
1.98 +} ;
1.99 +
1.100 +#if (_STLP_OUTERMOST_HEADER_ID == 0x2035)
1.101 +# include <stl/_epilog.h>
1.102 +# undef _STLP_OUTERMOST_HEADER_ID
1.103 +#endif
1.104 +
1.105 +#endif /* _STLP_IOSTREAM_H */
1.106 +
1.107 +// Local Variables:
1.108 +// mode:C++
1.109 +// End: