DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23281>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23281 MSVC 7.1 does not have iostream.h switch to <iostrem> fix for StdOutFormatTarget.cpp included Summary: MSVC 7.1 does not have iostream.h switch to <iostrem> fix for StdOutFormatTarget.cpp included Product: Xerces-C++ Version: 2.2.0 Platform: PC URL: http://www.circlesoft.com/ OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: Miscellaneous AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] // FILE: StdOutFormatTarget.cpp // fixed for msvc 7.1 that does not have iostream.h /* * $Id: StdOutFormatTarget.cpp,v 1.6 2003/01/24 20:20:22 tng Exp $ * $Log: StdOutFormatTarget.cpp,v $ * Revision 1.7 2003/09/19 20:20:22 gjpc * allow to compile under msvc 7.1 * * Revision 1.6 2003/01/24 20:20:22 tng * Add method flush to XMLFormatTarget * * Revision 1.5 2003/01/09 18:58:29 tng * [Bug 15427] DOMWriter dose not flush the output stream. * * Revision 1.4 2002/11/22 14:25:59 tng * Got a number of compilation erros for those non-ANSI C++ compliant compiler like xlC v3. * Since the previous fix is just for fixing a "warning", I think it doesn't worth to break users who * are not ANSI C++ ready yet. * * Revision 1.3 2002/11/21 15:45:34 gareth * gcc 3.2 now issues a warning for use of iostream.h. Removed the .h and prefixed cout with std::. * * Revision 1.2 2002/11/04 15:00:21 tng * C++ Namespace Support. * * Revision 1.1 2002/05/28 22:40:46 peiyongz * DOM3 Save Interface: DOMWriter/DOMWriterFilter * */ #include <xercesc/framework/StdOutFormatTarget.hpp> #include <iostream> XERCES_CPP_NAMESPACE_BEGIN StdOutFormatTarget::StdOutFormatTarget() {} StdOutFormatTarget::~StdOutFormatTarget() {} void StdOutFormatTarget::flush() { std::cout.flush(); } void StdOutFormatTarget::writeChars(const XMLByte* const toWrite , const unsigned int count , XMLFormatter* const formatter) { // Surprisingly, Solaris was the only platform on which // required the char* cast to print out the string correctly. // Without the cast, it was printing the pointer value in hex. // Quite annoying, considering every other platform printed // the string with the explicit cast to char* below. std::cout.write((char *) toWrite, (int) count); std::cout.flush(); } XERCES_CPP_NAMESPACE_END --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
