diff options
Diffstat (limited to 'include/plist')
| -rw-r--r-- | include/plist/Uid.h | 48 | ||||
| -rw-r--r-- | include/plist/plist++.h | 1 |
2 files changed, 49 insertions, 0 deletions
diff --git a/include/plist/Uid.h b/include/plist/Uid.h new file mode 100644 index 0000000..62a49e7 --- /dev/null +++ b/include/plist/Uid.h | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | /* | ||
| 2 | * Uid.h | ||
| 3 | * Uid node type for C++ binding | ||
| 4 | * | ||
| 5 | * Copyright (c) 2012 Nikias Bassen, All Rights Reserved. | ||
| 6 | * | ||
| 7 | * This library is free software; you can redistribute it and/or | ||
| 8 | * modify it under the terms of the GNU Lesser General Public | ||
| 9 | * License as published by the Free Software Foundation; either | ||
| 10 | * version 2.1 of the License, or (at your option) any later version. | ||
| 11 | * | ||
| 12 | * This library is distributed in the hope that it will be useful, | ||
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 15 | * Lesser General Public License for more details. | ||
| 16 | * | ||
| 17 | * You should have received a copy of the GNU Lesser General Public | ||
| 18 | * License along with this library; if not, write to the Free Software | ||
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
| 20 | */ | ||
| 21 | |||
| 22 | #ifndef PLIST__UID_H | ||
| 23 | #define PLIST__UID_H | ||
| 24 | |||
| 25 | #include <plist/Node.h> | ||
| 26 | |||
| 27 | namespace PList | ||
| 28 | { | ||
| 29 | |||
| 30 | class Uid : public Node | ||
| 31 | { | ||
| 32 | public : | ||
| 33 | Uid(Node* parent = NULL); | ||
| 34 | Uid(plist_t node, Node* parent = NULL); | ||
| 35 | Uid(Uid& i); | ||
| 36 | Uid& operator=(Uid& i); | ||
| 37 | Uid(uint64_t i); | ||
| 38 | virtual ~Uid(); | ||
| 39 | |||
| 40 | Node* Clone(); | ||
| 41 | |||
| 42 | void SetValue(uint64_t i); | ||
| 43 | uint64_t GetValue(); | ||
| 44 | }; | ||
| 45 | |||
| 46 | }; | ||
| 47 | |||
| 48 | #endif // PLIST__UID_H | ||
diff --git a/include/plist/plist++.h b/include/plist/plist++.h index 0690b26..b29fc76 100644 --- a/include/plist/plist++.h +++ b/include/plist/plist++.h | |||
| @@ -32,6 +32,7 @@ | |||
| 32 | #include "Node.h" | 32 | #include "Node.h" |
| 33 | #include "Real.h" | 33 | #include "Real.h" |
| 34 | #include "Key.h" | 34 | #include "Key.h" |
| 35 | #include "Uid.h" | ||
| 35 | #include "String.h" | 36 | #include "String.h" |
| 36 | #include "Structure.h" | 37 | #include "Structure.h" |
| 37 | 38 | ||
