diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/plist/Node.h | 6 | ||||
-rw-r--r-- | include/plist/Structure.h | 1 |
2 files changed, 5 insertions, 2 deletions
diff --git a/include/plist/Node.h b/include/plist/Node.h index 7ea6ed9..2f9f5b6 100644 --- a/include/plist/Node.h +++ b/include/plist/Node.h @@ -33,9 +33,8 @@ public : virtual ~Node(); virtual Node* Clone() = 0; - Node * GetParent(); - void SetParent(Node* parent); + Node * GetParent(); plist_type GetType(); plist_t GetPlist(); @@ -44,7 +43,10 @@ protected: Node(plist_t node, Node* parent = NULL); Node(plist_type type, Node* parent = NULL); plist_t _node; + +private: Node* _parent; + friend class Structure; }; }; diff --git a/include/plist/Structure.h b/include/plist/Structure.h index 66d9293..f6e4495 100644 --- a/include/plist/Structure.h +++ b/include/plist/Structure.h @@ -44,6 +44,7 @@ public : protected: Structure(Node* parent = NULL); Structure(plist_type type, Node* parent = NULL); + void UpdateNodeParent(Node* node); private: Structure(Structure& s); |