From c1363bea107b15bdc10ce80671747be891661889 Mon Sep 17 00:00:00 2001 From: Jonathan Beck Date: Mon, 26 Oct 2009 18:41:15 +0100 Subject: Add Set/Get Parent and a helper to create a Node from a plist_t. --- include/plist/Node.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'include/plist/Node.h') 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; }; }; -- cgit v1.1-32-gdbae