First public contribution.
5 * This material is provided "as is", with absolutely no warranty expressed
6 * or implied. Any use is at your own risk.
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.
16 #ifndef _STLP_IOSTREAM_H
17 #define _STLP_IOSTREAM_H
19 #ifndef _STLP_OUTERMOST_HEADER_ID
20 # define _STLP_OUTERMOST_HEADER_ID 0x2035
21 # include <stl/_prolog.h>
26 // Those should be included all separately, as they do contain using declarations
27 #include <streambuf.h>
31 #ifndef _STLP_HAS_NO_NAMESPACES
33 # ifdef _STLP_BROKEN_USING_DIRECTIVE
34 _STLP_USING_NAMESPACE(stlport)
37 using _STLP_STD::cout;
38 using _STLP_STD::clog;
39 using _STLP_STD::cerr;
40 using _STLP_STD::iostream;
41 # ifndef _STLP_NO_WCHAR_T
42 using _STLP_STD::wcin;
43 using _STLP_STD::wcout;
44 using _STLP_STD::wclog;
45 using _STLP_STD::wcerr;
48 #endif /* _STLP_HAS_NO_NAMESPACES */
50 // Obsolete classes for old-style backwards compatibility
53 class istream_withassign : public istream {
55 istream_withassign() : istream((streambuf*)0) {}
56 ~istream_withassign() {}
58 istream_withassign& operator=(istream& __s) {
59 ios::init(__s.rdbuf());
62 istream_withassign& operator=(streambuf* __s) {
68 class ostream_withassign : public ostream {
70 ostream_withassign() : ostream((streambuf*)0) {}
71 ~ostream_withassign() {}
73 ostream_withassign& operator=(ostream& __s) {
74 ios::init(__s.rdbuf());
77 ostream_withassign& operator=(streambuf* __s) {
83 class iostream_withassign : public iostream {
85 iostream_withassign() : iostream((streambuf*)0) {}
86 ~iostream_withassign() {}
87 iostream_withassign & operator=(ios& __i) {
88 ios::init(__i.rdbuf());
91 iostream_withassign & operator=(streambuf* __s) {
97 #if (_STLP_OUTERMOST_HEADER_ID == 0x2035)
98 # include <stl/_epilog.h>
99 # undef _STLP_OUTERMOST_HEADER_ID
102 #endif /* _STLP_IOSTREAM_H */