Added a flag suppressing node content conversion when saving to XML.

This helps improve the extremely poor performance of XML saving if
you have, for example, hex data that does not need conversion.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2010-10-05 06:17:22 +00:00
parent 6ffb5e91ea
commit 30f6914ba1
3 changed files with 45 additions and 9 deletions

View File

@@ -183,6 +183,13 @@ public:
*/
int GetDepth(wxXmlNode* grandparent = NULL) const;
/**
Returns a flag indicating whether encoding conversion is necessary when saving. The default is @false.
You can improve saving efficiency considerably by setting this value.
*/
bool GetNoConversion() const;
/**
Returns line number of the node in the input XML file or @c -1 if it is unknown.
*/
@@ -301,7 +308,7 @@ public:
/**
Sets as first attribute the given wxXmlAttribute object.
The caller is responsible to delete any previously present attributes
The caller is responsible for deleting any previously present attributes
attached to this node.
*/
void SetAttributes(wxXmlAttribute* attr);
@@ -309,7 +316,7 @@ public:
/**
Sets as first child the given node.
The caller is responsible to delete any previously present children node.
The caller is responsible for deleting any previously present children node.
*/
void SetChildren(wxXmlNode* child);
@@ -326,14 +333,21 @@ public:
/**
Sets as sibling the given node.
The caller is responsible to delete any previously present sibling node.
The caller is responsible for deleting any previously present sibling node.
*/
void SetNext(wxXmlNode* next);
/**
Sets a flag to indicate whether encoding conversion is necessary when saving. The default is @false.
You can improve saving efficiency considerably by setting this value.
*/
void SetNoConversion(bool noconversion);
/**
Sets as parent the given node.
The caller is responsible to delete any previously present parent node.
The caller is responsible for deleting any previously present parent node.
*/
void SetParent(wxXmlNode* parent);