summaryrefslogtreecommitdiffstats
path: root/include/plist/Structure.h
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2009-10-13 20:04:06 +0200
committerGravatar Jonathan Beck2009-10-13 20:04:06 +0200
commita922b714c9b75fdc67735d674758d4eaedfd32f9 (patch)
tree509ec53c18c0be36a9e650eb0f760854cd8d4957 /include/plist/Structure.h
parente492ef675c404cc6c0d1cfa26e47a1c16c850d5f (diff)
downloadlibplist-a922b714c9b75fdc67735d674758d4eaedfd32f9.tar.gz
libplist-a922b714c9b75fdc67735d674758d4eaedfd32f9.tar.bz2
Add C++ binding.
Diffstat (limited to 'include/plist/Structure.h')
-rw-r--r--include/plist/Structure.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/include/plist/Structure.h b/include/plist/Structure.h
new file mode 100644
index 0000000..a0bdcbc
--- /dev/null
+++ b/include/plist/Structure.h
@@ -0,0 +1,53 @@
1/*
2 * Structure.h
3 * Structure node type for C++ binding
4 *
5 * Copyright (c) 2009 Jonathan Beck 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 STRUCTURE_H
23#define STRUCTURE_H
24
25#include <plist/Node.h>
26#include <string>
27#include <vector>
28
29namespace PList
30{
31
32class Structure : public Node
33{
34 public :
35 virtual ~Structure();
36
37 uint32_t GetSize();
38
39 std::string ToXml();
40 std::vector<char> ToBin();
41
42 protected:
43 Structure();
44 Structure(plist_type type);
45
46 private:
47 Structure(Structure& s);
48 Structure& operator=(const Structure& s);
49};
50
51};
52
53#endif // STRUCTURE_H