8 #ifndef BOOST_NOWIDE_IOSTREAM_HPP_INCLUDED 9 #define BOOST_NOWIDE_IOSTREAM_HPP_INCLUDED 13 #include <boost/scoped_ptr.hpp> 17 #include <boost/config/abi_prefix.hpp> 24 #pragma warning(disable : 4251) 29 #if !defined(BOOST_WINDOWS) && !defined(BOOST_NOWIDE_DOXYGEN) 38 class console_output_buffer;
39 class console_input_buffer;
41 class BOOST_NOWIDE_DECL winconsole_ostream :
public std::ostream
43 winconsole_ostream(
const winconsole_ostream&);
44 void operator=(
const winconsole_ostream&);
47 winconsole_ostream(
int fd, winconsole_ostream* tieStream);
48 ~winconsole_ostream();
51 boost::scoped_ptr<console_output_buffer> d;
54 class BOOST_NOWIDE_DECL winconsole_istream :
public std::istream
56 winconsole_istream(
const winconsole_istream&);
57 void operator=(
const winconsole_istream&);
60 explicit winconsole_istream(winconsole_ostream* tieStream);
61 ~winconsole_istream();
64 boost::scoped_ptr<console_input_buffer> d;
75 extern BOOST_NOWIDE_DECL detail::winconsole_istream
cin;
81 extern BOOST_NOWIDE_DECL detail::winconsole_ostream
cout;
87 extern BOOST_NOWIDE_DECL detail::winconsole_ostream
cerr;
93 extern BOOST_NOWIDE_DECL detail::winconsole_ostream
clog;
105 #include <boost/config/abi_suffix.hpp> detail::winconsole_istream cin
Same as std::cin, but uses UTF-8.
detail::winconsole_ostream cout
Same as std::cout, but uses UTF-8.
detail::winconsole_ostream cerr
Same as std::cerr, but uses UTF-8.
detail::winconsole_ostream clog
Same as std::clog, but uses UTF-8.