- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

RVNGPropertyListVector.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) 2005 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 RVNGPROPERTYLISTVECTOR_H
22 #define RVNGPROPERTYLISTVECTOR_H
23
24 #include "RVNGPropertyList.h"
25
26 namespace librevenge
27 {
28
29 class RVNGPropertyListVectorImpl;
30 class RVNGPropertyListVectorIterImpl;
31
32 class RVNGPropertyListVector : public RVNGProperty
33 {
34 public:
35 RVNGPropertyListVector(const RVNGPropertyListVector &);
36 RVNGPropertyListVector();
37 virtual ~RVNGPropertyListVector();
38
39 // RVNGProperty methods
40 int getInt() const;
41 double getDouble() const;
42 RVNGUnit getUnit() const;
43 RVNGString getStr() const;
44 RVNGProperty *clone() const;
45
46 void append(const RVNGPropertyList &elem);
47 void append(const RVNGPropertyListVector &vec);
48 unsigned long count() const;
49 bool empty() const;
50 void clear();
51 const RVNGPropertyList &operator[](unsigned long index) const;
52 RVNGPropertyListVector &operator=(const RVNGPropertyListVector &vect);
53
54 RVNGString getPropString() const;
55
56 class Iter
57 {
58 public:
59 Iter(const RVNGPropertyListVector &vect);
60 virtual ~Iter();
61 void rewind();
62 bool next();
63 bool last();
64 const RVNGPropertyList &operator()() const;
65
66 private:
67 RVNGPropertyListVectorIterImpl *m_iterImpl;
68 Iter(const Iter &);
69 Iter &operator=(const Iter &);
70 };
71
72 friend class RVNGPropertyListVector::Iter;
73
74 private:
75 RVNGPropertyListVectorImpl *m_impl;
76 };
77
78 }
79
80 #endif /* RVNGPROPERTYLISTVECTOR_H */
81 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
librevenge::RVNGPropertyListVector::operator[]
const RVNGPropertyList & operator[](unsigned long index) const
Definition: RVNGPropertyListVector.cpp:161
librevenge::RVNGPropertyListVector::getInt
int getInt() const
Definition: RVNGPropertyListVector.cpp:109
librevenge::RVNGPropertyListVector::count
unsigned long count() const
Definition: RVNGPropertyListVector.cpp:146
librevenge::RVNGPropertyListVector::getDouble
double getDouble() const
Definition: RVNGPropertyListVector.cpp:114
librevenge::RVNGPropertyListVector::operator=
RVNGPropertyListVector & operator=(const RVNGPropertyListVector &vect)
Definition: RVNGPropertyListVector.cpp:166
librevenge::RVNGPropertyListVector::Iter::rewind
void rewind()
Definition: RVNGPropertyListVector.cpp:207
librevenge::RVNGUnit
RVNGUnit
Definition: RVNGProperty.h:27
librevenge::RVNGPropertyListVector::getPropString
RVNGString getPropString() const
Definition: RVNGPropertyListVector.cpp:177
librevenge::RVNGPropertyListVector::append
void append(const RVNGPropertyList &elem)
Definition: RVNGPropertyListVector.cpp:134
librevenge::RVNGPropertyListVector::Iter::~Iter
virtual ~Iter()
Definition: RVNGPropertyListVector.cpp:202
librevenge::RVNGPropertyListVector::Iter
Definition: RVNGPropertyListVector.h:56
librevenge::RVNGPropertyListVector::getStr
RVNGString getStr() const
Definition: RVNGPropertyListVector.cpp:124
librevenge::RVNGPropertyListVectorIterImpl
Definition: RVNGPropertyListVector.cpp:56
librevenge::RVNGPropertyListVector::Iter::operator=
Iter & operator=(const Iter &)
RVNGPropertyList.h
librevenge::RVNGPropertyListVector::clear
void clear()
Definition: RVNGPropertyListVector.cpp:156
librevenge::RVNGPropertyListVectorImpl
Definition: RVNGPropertyListVector.cpp:28
librevenge::RVNGPropertyListVector::~RVNGPropertyListVector
virtual ~RVNGPropertyListVector()
Definition: RVNGPropertyListVector.cpp:103
librevenge::RVNGPropertyListVector::m_impl
RVNGPropertyListVectorImpl * m_impl
Definition: RVNGPropertyListVector.h:75
librevenge::RVNGPropertyListVector::Iter::last
bool last()
Definition: RVNGPropertyListVector.cpp:217
librevenge::RVNGPropertyListVector::Iter::operator()
const RVNGPropertyList & operator()() const
Definition: RVNGPropertyListVector.cpp:222
librevenge::RVNGProperty
Definition: RVNGProperty.h:29
librevenge::RVNGPropertyListVector::Iter::Iter
Iter(const RVNGPropertyListVector &vect)
Definition: RVNGPropertyListVector.cpp:172
librevenge::RVNGPropertyListVector::clone
RVNGProperty * clone() const
Definition: RVNGPropertyListVector.cpp:129
librevenge::RVNGPropertyListVector
Definition: RVNGPropertyListVector.h:32
librevenge::RVNGPropertyListVector::getUnit
RVNGUnit getUnit() const
returns the property unit when possible.
Definition: RVNGPropertyListVector.cpp:119
librevenge::RVNGPropertyListVector::Iter::next
bool next()
Definition: RVNGPropertyListVector.cpp:212
librevenge::RVNGPropertyListVector::empty
bool empty() const
Definition: RVNGPropertyListVector.cpp:151
librevenge::RVNGPropertyListVector::RVNGPropertyListVector
RVNGPropertyListVector()
Definition: RVNGPropertyListVector.cpp:98
librevenge::RVNGPropertyList
Definition: RVNGPropertyList.h:35
librevenge::RVNGString
Definition: RVNGString.h:29
librevenge::RVNGPropertyListVector::Iter::m_iterImpl
RVNGPropertyListVectorIterImpl * m_iterImpl
Definition: RVNGPropertyListVector.h:67