summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/xmlfile.h
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2017-07-21 13:03:44 +1000
committer Vas Crabb <vas@vastheman.com>2017-07-21 13:03:44 +1000
commitd7984c7d0ce594ecb34275fdabb817bdbe261647 (patch)
treeb8a771b129db3ca6105111e202b0d1deab813999 /src/lib/util/xmlfile.h
parent05e84dccc04849857ebc4460084bdafc872d5815 (diff)
Add a method for copying part of an XML tree into another tree and use it to fix Cocoa debugger fatal error
Diffstat (limited to 'src/lib/util/xmlfile.h')
-rw-r--r--src/lib/util/xmlfile.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/util/xmlfile.h b/src/lib/util/xmlfile.h
index 5c4672373d3..5e55dbf310e 100644
--- a/src/lib/util/xmlfile.h
+++ b/src/lib/util/xmlfile.h
@@ -118,6 +118,9 @@ public:
// either return an existing child node or create one if it doesn't exist
data_node *get_or_add_child(const char *name, const char *value);
+ // recursively copy as child of another node
+ data_node *copy_into(data_node &parent) const;
+
// delete a node and its children
void delete_node();
@@ -189,6 +192,8 @@ private:
attribute_node *get_attribute(const char *attribute);
attribute_node const *get_attribute(const char *attribute) const;
+ void free_children();
+
data_node * m_next;
data_node * m_first_child;
@@ -208,7 +213,7 @@ public:
~file();
- // create a new empty xml file object
+ // create a new, empty XML file
static ptr create();
// parse an XML file into its nodes