diff options
author | Jonathan Beck | 2009-10-15 19:28:30 +0200 |
---|---|---|
committer | Jonathan Beck | 2009-10-15 19:28:30 +0200 |
commit | 8186a9d371b2a31122643f75c65cef4e438ac97b (patch) | |
tree | f059e0199ac4b8b0425c910a11f595b42490448a /src/Array.cpp | |
parent | a922b714c9b75fdc67735d674758d4eaedfd32f9 (diff) | |
download | libplist-8186a9d371b2a31122643f75c65cef4e438ac97b.tar.gz libplist-8186a9d371b2a31122643f75c65cef4e438ac97b.tar.bz2 |
Fix various mistakes in C++ bindings.
Diffstat (limited to 'src/Array.cpp')
-rw-r--r-- | src/Array.cpp | 45 |
1 files changed, 42 insertions, 3 deletions
diff --git a/src/Array.cpp b/src/Array.cpp index 6f1d3f9..0505a27 100644 --- a/src/Array.cpp +++ b/src/Array.cpp @@ -21,6 +21,12 @@ #include <stdlib.h> #include <plist/Array.h> #include <plist/Dictionary.h> +#include <plist/Boolean.h> +#include <plist/Integer.h> +#include <plist/Real.h> +#include <plist/String.h> +#include <plist/Date.h> +#include <plist/Data.h> namespace PList { @@ -48,13 +54,24 @@ Array::Array(plist_t node) : Structure() _array.push_back( new Array(subnode) ); break; case PLIST_BOOLEAN: + _array.push_back( new Boolean(subnode) ); + break; case PLIST_UINT: + _array.push_back( new Integer(subnode) ); + break; case PLIST_REAL: + _array.push_back( new Real(subnode) ); + break; case PLIST_STRING: + _array.push_back( new String(subnode) ); + break; case PLIST_DATE: + _array.push_back( new Date(subnode) ); + break; case PLIST_DATA: + _array.push_back( new Data(subnode) ); + break; default: - _array.push_back( new Node(subnode) ); break; } } @@ -85,13 +102,24 @@ Array::Array(Array& a) _array.push_back( new Array(subnode) ); break; case PLIST_BOOLEAN: + _array.push_back( new Boolean(subnode) ); + break; case PLIST_UINT: + _array.push_back( new Integer(subnode) ); + break; case PLIST_REAL: + _array.push_back( new Real(subnode) ); + break; case PLIST_STRING: + _array.push_back( new String(subnode) ); + break; case PLIST_DATE: + _array.push_back( new Date(subnode) ); + break; case PLIST_DATA: + _array.push_back( new Data(subnode) ); + break; default: - _array.push_back( new Node(subnode) ); break; } } @@ -122,13 +150,24 @@ Array& Array::operator=(const Array& a) _array.push_back( new Array(subnode) ); break; case PLIST_BOOLEAN: + _array.push_back( new Boolean(subnode) ); + break; case PLIST_UINT: + _array.push_back( new Integer(subnode) ); + break; case PLIST_REAL: + _array.push_back( new Real(subnode) ); + break; case PLIST_STRING: + _array.push_back( new String(subnode) ); + break; case PLIST_DATE: + _array.push_back( new Date(subnode) ); + break; case PLIST_DATA: + _array.push_back( new Data(subnode) ); + break; default: - _array.push_back( new Node(subnode) ); break; } } |