summaryrefslogtreecommitdiffstats
path: root/include/plist/Node.h
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2009-10-26 18:41:15 +0100
committerGravatar Jonathan Beck2009-10-26 18:41:15 +0100
commitc1363bea107b15bdc10ce80671747be891661889 (patch)
tree1a8ce452eb6c1110ea0cd88dec155e99bfe7b69b /include/plist/Node.h
parentbef50c0873aad5d8cd516428828e79fc05a43913 (diff)
downloadlibplist-c1363bea107b15bdc10ce80671747be891661889.tar.gz
libplist-c1363bea107b15bdc10ce80671747be891661889.tar.bz2
Add Set/Get Parent and a helper to create a Node from a plist_t.
Diffstat (limited to 'include/plist/Node.h')
-rw-r--r--include/plist/Node.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/plist/Node.h b/include/plist/Node.h
index 702d018..6e5411a 100644
--- a/include/plist/Node.h
+++ b/include/plist/Node.h
@@ -33,15 +33,18 @@ class Node
virtual ~Node();
virtual Node* Clone() = 0;
+ Node * GetParent();
+ void SetParent(Node* parent);
plist_type GetType();
plist_t GetPlist();
protected:
- Node();
- Node(plist_t node);
- Node(plist_type type);
+ Node(Node* parent = NULL);
+ Node(plist_t node, Node* parent = NULL);
+ Node(plist_type type, Node* parent = NULL);
plist_t _node;
+ Node* _parent;
};
};