Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

WPXPropertyListVector.h

Go to the documentation of this file.
00001 /* libwpd
00002  * Copyright (C) 2005 William Lachance (wrlach@gmail.com)
00003  * Copyright (C) 2005 Net Integration Technologies, Inc. (http://www.net-itech.com)
00004  * Copyright (C) 2006 Fridrich Strba (fridrich.strba@bluewin.ch)
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Library General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2 of the License, or (at your option) any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Library General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Library General Public
00017  * License along with this library; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
00019  *
00020  * For further information visit http://libwpd.sourceforge.net
00021  */
00022 
00023 /* "This product is not manufactured, approved, or supported by
00024  * Corel Corporation or Corel Corporation Limited."
00025  */
00026 
00027 #ifndef WPXPROPERTYLISTVECTOR_H
00028 #define WPXPROPERTYLISTVECTOR_H
00029 #include <sys/types.h>
00030 
00031 class WPXPropertyList;
00032 
00033 class WPXPropertyListVectorImpl;
00034 class WPXPropertyListVectorIterImpl;
00035 
00036 // NOTE: this class is meant to be used in libwpd's headers (to work around symbol problems 
00037 // when different versions of the STL are in use), and should not be used inside your application
00038 // (it will only slow it down with a pointless layer of abstraction)
00039  
00040 class WPXPropertyListVector
00041 {
00042 public:
00043         WPXPropertyListVector(const WPXPropertyListVector &);
00044         WPXPropertyListVector();
00045         virtual ~WPXPropertyListVector();
00046         virtual void append(const WPXPropertyList &elem);
00047         virtual size_t count() const;
00048 
00049         class Iter
00050         {
00051         public:
00052                 Iter(const WPXPropertyListVector &vect);
00053                 virtual ~Iter();
00054                 void rewind();
00055                 bool next();
00056                 bool last();
00057                 const WPXPropertyList & operator()() const;
00058 
00059         private:
00060                 WPXPropertyListVectorIterImpl *m_iterImpl;
00061                 Iter(const Iter&);
00062                 Iter& operator=(const Iter&);
00063         };
00064         friend class WPXPropertyListVector::Iter;
00065 
00066 private:
00067         WPXPropertyListVectorImpl *m_impl;
00068         WPXPropertyListVector& operator=(WPXPropertyListVector&);
00069 };
00070 
00071 #endif /* WPXPROPERTYLISTVECTOR_H */

Generated on Sat Aug 20 05:20:57 2022 for libwpd by doxygen 1.3.5