tng 2003/01/24 12:20:23 Modified: c/src/xercesc/framework LocalFileFormatTarget.cpp LocalFileFormatTarget.hpp StdOutFormatTarget.cpp StdOutFormatTarget.hpp XMLFormatter.hpp Log: Add method flush to XMLFormatTarget Revision Changes Path 1.5 +9 -1 xml-xerces/c/src/xercesc/framework/LocalFileFormatTarget.cpp Index: LocalFileFormatTarget.cpp =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/framework/LocalFileFormatTarget.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- LocalFileFormatTarget.cpp 9 Jan 2003 20:59:44 -0000 1.4 +++ LocalFileFormatTarget.cpp 24 Jan 2003 20:20:22 -0000 1.5 @@ -57,6 +57,9 @@ /* * $Id$ * $Log$ + * Revision 1.5 2003/01/24 20:20:22 tng + * Add method flush to XMLFormatTarget + * * Revision 1.4 2003/01/09 20:59:44 tng * [Bug 15928] Output with LocalFileFormatTarget fails silently. * @@ -125,6 +128,11 @@ XMLPlatformUtils::closeFile(fSource); delete [] fDataBuf; +} + +void LocalFileFormatTarget::flush() +{ + flushBuffer(); } void LocalFileFormatTarget::writeChars(const XMLByte* const toWrite 1.4 +6 -1 xml-xerces/c/src/xercesc/framework/LocalFileFormatTarget.hpp Index: LocalFileFormatTarget.hpp =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/framework/LocalFileFormatTarget.hpp,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- LocalFileFormatTarget.hpp 27 Nov 2002 18:09:25 -0000 1.3 +++ LocalFileFormatTarget.hpp 24 Jan 2003 20:20:22 -0000 1.4 @@ -57,6 +57,9 @@ /* * $Id$ * $Log$ + * Revision 1.4 2003/01/24 20:20:22 tng + * Add method flush to XMLFormatTarget + * * Revision 1.3 2002/11/27 18:09:25 tng * [Bug 13447] Performance: Using LocalFileFormatTarget with DOMWriter is very slow. * @@ -94,6 +97,8 @@ virtual void writeChars(const XMLByte* const toWrite , const unsigned int count , XMLFormatter* const formatter); + + virtual void flush(); private: // ----------------------------------------------------------------------- 1.6 +9 -1 xml-xerces/c/src/xercesc/framework/StdOutFormatTarget.cpp Index: StdOutFormatTarget.cpp =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/framework/StdOutFormatTarget.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- StdOutFormatTarget.cpp 9 Jan 2003 18:58:29 -0000 1.5 +++ StdOutFormatTarget.cpp 24 Jan 2003 20:20:22 -0000 1.6 @@ -57,6 +57,9 @@ /* * $Id$ * $Log$ + * 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. * @@ -86,6 +89,11 @@ StdOutFormatTarget::~StdOutFormatTarget() {} + +void StdOutFormatTarget::flush() +{ + cout.flush(); +} void StdOutFormatTarget::writeChars(const XMLByte* const toWrite , const unsigned int count 1.4 +6 -1 xml-xerces/c/src/xercesc/framework/StdOutFormatTarget.hpp Index: StdOutFormatTarget.hpp =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/framework/StdOutFormatTarget.hpp,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- StdOutFormatTarget.hpp 4 Nov 2002 15:00:21 -0000 1.3 +++ StdOutFormatTarget.hpp 24 Jan 2003 20:20:22 -0000 1.4 @@ -57,6 +57,9 @@ /* * $Id$ * $Log$ + * Revision 1.4 2003/01/24 20:20:22 tng + * Add method flush to XMLFormatTarget + * * Revision 1.3 2002/11/04 15:00:21 tng * C++ Namespace Support. * @@ -90,6 +93,8 @@ virtual void writeChars(const XMLByte* const toWrite , const unsigned int count , XMLFormatter* const formatter); + + virtual void flush(); private: // ----------------------------------------------------------------------- 1.5 +5 -0 xml-xerces/c/src/xercesc/framework/XMLFormatter.hpp Index: XMLFormatter.hpp =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/framework/XMLFormatter.hpp,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- XMLFormatter.hpp 4 Nov 2002 15:00:21 -0000 1.4 +++ XMLFormatter.hpp 24 Jan 2003 20:20:22 -0000 1.5 @@ -56,6 +56,9 @@ /* * $Log$ + * Revision 1.5 2003/01/24 20:20:22 tng + * Add method flush to XMLFormatTarget + * * Revision 1.4 2002/11/04 15:00:21 tng * C++ Namespace Support. * @@ -473,6 +476,8 @@ , const unsigned int count , XMLFormatter* const formatter ) = 0; + + virtual void flush() {}; protected :
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]