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
This commit is contained in:
parent
600c3814e9
commit
46da814b42
2 changed files with 20 additions and 0 deletions
|
@ -2647,6 +2647,13 @@ namespace pugi
|
|||
node_output(buffered_writer, *this, indent, flags, depth);
|
||||
}
|
||||
|
||||
void xml_node::print(std::ostream& stream, const char* indent, unsigned int flags, unsigned int depth)
|
||||
{
|
||||
xml_writer_stream writer(stream);
|
||||
|
||||
print(writer, indent, flags, depth);
|
||||
}
|
||||
|
||||
int xml_node::offset_debug() const
|
||||
{
|
||||
xml_node_struct* r = root()._root;
|
||||
|
|
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue