WPXPropertyListVector.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2 /* libwpd
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  * For further information visit http://libwpd.sourceforge.net
21  */
22 
23 /* "This product is not manufactured, approved, or supported by
24  * Corel Corporation or Corel Corporation Limited."
25  */
26 
27 #ifndef WPXPROPERTYLISTVECTOR_H
28 #define WPXPROPERTYLISTVECTOR_H
29 
30 #include "WPXPropertyList.h"
31 
34 
36 {
37 public:
40  virtual ~WPXPropertyListVector();
41  void append(const WPXPropertyList &elem);
42  void append(const WPXPropertyListVector &vec);
43  unsigned long count() const;
44  const WPXPropertyList &operator[](unsigned long index) const;
46 
47  class Iter
48  {
49  public:
50  Iter(const WPXPropertyListVector &vect);
51  virtual ~Iter();
52  void rewind();
53  bool next();
54  bool last();
55  const WPXPropertyList &operator()() const;
56 
57  private:
59  Iter(const Iter &);
60  Iter &operator=(const Iter &);
61  };
62 
64 
65 private:
67 };
68 
69 #endif /* WPXPROPERTYLISTVECTOR_H */
70 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
WPXPropertyListVector()
Definition: WPXPropertyListVector.cpp:94
WPXPropertyListVectorIterImpl * m_iterImpl
Definition: WPXPropertyListVector.h:58
WPXPropertyListVectorImpl * m_impl
Definition: WPXPropertyListVector.h:66
WPXPropertyListVector & operator=(const WPXPropertyListVector &vect)
Definition: WPXPropertyListVector.cpp:127
Iter & operator=(const Iter &)
Definition: WPXPropertyList.h:37
Definition: WPXPropertyListVector.h:47
Definition: WPXPropertyListVector.h:35
unsigned long count() const
Definition: WPXPropertyListVector.cpp:117
const WPXPropertyList & operator()() const
Definition: WPXPropertyListVector.cpp:158
virtual ~WPXPropertyListVector()
Definition: WPXPropertyListVector.cpp:99
bool last()
Definition: WPXPropertyListVector.cpp:153
virtual ~Iter()
Definition: WPXPropertyListVector.cpp:138
bool next()
Definition: WPXPropertyListVector.cpp:148
const WPXPropertyList & operator[](unsigned long index) const
Definition: WPXPropertyListVector.cpp:122
Definition: WPXPropertyListVector.cpp:31
Iter(const WPXPropertyListVector &vect)
Definition: WPXPropertyListVector.cpp:133
Definition: WPXPropertyListVector.cpp:52
void rewind()
Definition: WPXPropertyListVector.cpp:143
void append(const WPXPropertyList &elem)
Definition: WPXPropertyListVector.cpp:105

Generated for libwpd by doxygen 1.8.5