RVNGPropertyList.h
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2/* librevenge
3 * Version: MPL 2.0 / LGPLv2.1+
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * Major Contributor(s):
10 * Copyright (C) 2004 William Lachance (wrlach@gmail.com)
11 * Copyright (C) 2006 Fridrich Strba (fridrich.strba@bluewin.ch)
12 *
13 * For minor contributions see the git repository.
14 *
15 * Alternatively, the contents of this file may be used under the terms
16 * of the GNU Lesser General Public License Version 2.1 or later
17 * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
18 * applicable instead of those above.
19 */
20
21#ifndef RVNGPROPERTYLIST_H
22#define RVNGPROPERTYLIST_H
23
24#include "librevenge-api.h"
25
26#include "RVNGProperty.h"
27
28namespace librevenge
29{
30
31// we use the pimpl pattern so we don't expose any STL symbols to the rest of
32// the world.. yes, this is quite annoying.
33
37
39{
40public:
44 virtual ~RVNGPropertyList();
45 void insert(const char *name, RVNGProperty *prop);
46 void insert(const char *name, const char *val);
47 void insert(const char *name, const int val);
48 void insert(const char *name, const bool val);
49 void insert(const char *name, const RVNGString &val);
50 void insert(const char *name, const double val, const RVNGUnit units = RVNG_INCH);
51 void insert(const char *name, const unsigned char *buffer, const unsigned long bufferSize);
52 void insert(const char *name, const RVNGBinaryData &data);
53 void insert(const char *name, const RVNGPropertyListVector &vec);
54 void remove(const char *name);
55 void clear();
56 bool empty() const;
57
58 const RVNGProperty *operator[](const char *name) const;
59 const RVNGPropertyListVector *child(const char *name) const;
60 const RVNGPropertyList &operator=(const RVNGPropertyList &propList);
62
64
66 {
67 public:
68 Iter(const RVNGPropertyList &propList);
69 virtual ~Iter();
70 void rewind();
71 bool next();
72 bool last();
73 const RVNGProperty *operator()() const;
74 const char *key() const;
75 const RVNGPropertyListVector *child() const;
76 private:
78 Iter(const Iter &);
79 Iter &operator=(const Iter &);
80 };
82
83private:
85};
86
87}
88
89#endif /* RVNGPROPERTYLIST_H */
90/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
A representation of arbitrary binary data.
Definition RVNGBinaryData.h:37
Definition RVNGPropertyList.cpp:149
Definition RVNGPropertyList.cpp:401
Definition RVNGPropertyListVector.h:35
Definition RVNGPropertyList.h:66
const RVNGPropertyListVector * child() const
Definition RVNGPropertyList.cpp:505
RVNGPropertyListIterImpl * m_iterImpl
Definition RVNGPropertyList.h:77
const char * key() const
Definition RVNGPropertyList.cpp:510
bool next()
Definition RVNGPropertyList.cpp:490
void rewind()
Definition RVNGPropertyList.cpp:484
bool last()
Definition RVNGPropertyList.cpp:495
const RVNGProperty * operator()() const
Definition RVNGPropertyList.cpp:500
Iter & operator=(const Iter &)
Iter(const RVNGPropertyList &propList)
Definition RVNGPropertyList.cpp:474
bool empty() const
Definition RVNGPropertyList.cpp:361
const RVNGPropertyListVector * child(const char *name) const
Definition RVNGPropertyList.cpp:351
void remove(const char *name)
Definition RVNGPropertyList.cpp:328
const RVNGProperty * operator[](const char *name) const
Definition RVNGPropertyList.cpp:346
const RVNGPropertyList & operator=(const RVNGPropertyList &propList)
Definition RVNGPropertyList.cpp:333
RVNGPropertyList()
Definition RVNGPropertyList.cpp:234
RVNGString getPropString() const
Definition RVNGPropertyList.cpp:367
RVNGPropertyListImpl * m_impl
Definition RVNGPropertyList.h:84
void insert(const char *name, RVNGProperty *prop)
Definition RVNGPropertyList.cpp:255
void clear()
Definition RVNGPropertyList.cpp:356
Definition RVNGProperty.h:33
UTF-8 string.
Definition RVNGString.h:35
#define REVENGE_API
Definition librevenge-api.h:34
Definition RVNGBinaryData.cpp:41
RVNGUnit
Definition RVNGProperty.h:30
@ RVNG_INCH
Definition RVNGProperty.h:30

Generated for librevenge by doxygen 1.18.0