diff options
| author | 2009-10-26 18:41:15 +0100 | |
|---|---|---|
| committer | 2009-10-26 18:41:15 +0100 | |
| commit | c1363bea107b15bdc10ce80671747be891661889 (patch) | |
| tree | 1a8ce452eb6c1110ea0cd88dec155e99bfe7b69b /include/plist/Node.h | |
| parent | bef50c0873aad5d8cd516428828e79fc05a43913 (diff) | |
| download | libplist-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.h | 9 |
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 | |||
| 33 | virtual ~Node(); | 33 | virtual ~Node(); |
| 34 | 34 | ||
| 35 | virtual Node* Clone() = 0; | 35 | virtual Node* Clone() = 0; |
| 36 | Node * GetParent(); | ||
| 37 | void SetParent(Node* parent); | ||
| 36 | 38 | ||
| 37 | plist_type GetType(); | 39 | plist_type GetType(); |
| 38 | plist_t GetPlist(); | 40 | plist_t GetPlist(); |
| 39 | 41 | ||
| 40 | protected: | 42 | protected: |
| 41 | Node(); | 43 | Node(Node* parent = NULL); |
| 42 | Node(plist_t node); | 44 | Node(plist_t node, Node* parent = NULL); |
| 43 | Node(plist_type type); | 45 | Node(plist_type type, Node* parent = NULL); |
| 44 | plist_t _node; | 46 | plist_t _node; |
| 47 | Node* _parent; | ||
| 45 | }; | 48 | }; |
| 46 | 49 | ||
| 47 | }; | 50 | }; |
