13 class dostream :
public std::ofstream
16 dostream() : std::ofstream(
"lwpp.log", std::ios::out | std::ios::app)
22 #ifdef LWPP_PLATFORM_OSX_UB
40 class dostream :
public std::stringstream
62 #elif defined(LWPP_PLATFORM_WIN)
64 template <
class CharT,
class TraitsT = std::
char_traits<CharT> >
65 class basic_debugbuf :
public std::basic_stringbuf<CharT, TraitsT>
68 virtual ~basic_debugbuf()
76 ::OutputDebugStringA(str().c_str());
77 str(std::basic_string<CharT>());
82 template<
class CharT,
class TraitsT = std::
char_traits<CharT> >
83 class basic_dostream :
84 public std::basic_ostream<CharT, TraitsT>
88 : std::basic_ostream<CharT, TraitsT>(new basic_debugbuf<CharT, TraitsT>())
90 setf(std::ios::unitbuf);
98 typedef basic_dostream<char> dostream;
101 #endif // _DEBUGTOFILE
105 #endif // LWPP_DEBUG_H