summaryrefslogtreecommitdiffstats
path: root/src/Node.cpp
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2013-03-19 16:50:47 +0100
committerGravatar Nikias Bassen2013-03-19 16:50:47 +0100
commit553c3849207a29abd1cb58f82d5994e5cd9d1f2d (patch)
treeded1d25c25f4afe5c0b8aad7a8b16f64f8cee0f1 /src/Node.cpp
parent057fa38c02913703634da5c40753e1dafd626774 (diff)
downloadlibplist-553c3849207a29abd1cb58f82d5994e5cd9d1f2d.tar.gz
libplist-553c3849207a29abd1cb58f82d5994e5cd9d1f2d.tar.bz2
C++: added support for PLIST_UID nodes (class Uid)
Diffstat (limited to 'src/Node.cpp')
-rw-r--r--src/Node.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Node.cpp b/src/Node.cpp
index 35128a6..516d1ae 100644
--- a/src/Node.cpp
+++ b/src/Node.cpp
@@ -28,6 +28,7 @@
#include <plist/Real.h>
#include <plist/String.h>
#include <plist/Key.h>
+#include <plist/Uid.h>
#include <plist/Data.h>
#include <plist/Date.h>
@@ -64,6 +65,9 @@ Node::Node(plist_type type, Node* parent) : _parent(parent)
_node = plist_new_string("");
plist_set_key_val(_node, "");
break;
+ case PLIST_UID:
+ _node = plist_new_uid(0);
+ break;
case PLIST_DATA:
_node = plist_new_data(NULL,0);
break;
@@ -137,6 +141,9 @@ Node* Node::FromPlist(plist_t node, Node* parent)
case PLIST_KEY:
ret = new Key(node, parent);
break;
+ case PLIST_UID:
+ ret = new Uid(node, parent);
+ break;
case PLIST_DATE:
ret = new Date(node, parent);
break;