From 46da814b4287f34d668f38779947e6941837079b Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Sun, 25 Jan 2009 20:49:53 +0000 Subject: Added xml_node::print for stream to make migration easier git-svn-id: http://pugixml.googlecode.com/svn/trunk@112 99668b35-9821-0410-8761-19e4c4f06640 --- src/pugixml.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/pugixml.hpp') diff --git a/src/pugixml.hpp b/src/pugixml.hpp index f808a77..c2ac8bc 100644 --- a/src/pugixml.hpp +++ b/src/pugixml.hpp @@ -1211,6 +1211,19 @@ namespace pugi */ void print(xml_writer& writer, const char* indent = "\t", unsigned int flags = format_default, unsigned int depth = 0); + #ifndef PUGIXML_NO_STL + /** + * Print subtree to stream + * + * \param os - output stream + * \param indent - indentation string + * \param flags - formatting flags + * \param depth - starting depth (used for indentation) + * \deprecated + */ + void print(std::ostream& os, const char* indent = "\t", unsigned int flags = format_default, unsigned int depth = 0); + #endif + /** * Get node offset in parsed file/string (in bytes) for debugging purposes * -- cgit v1.2.3