~ubuntu-branches/ubuntu/saucy/libwpd/saucy

« back to all changes in this revision

Viewing changes to src/lib/WPXPropertyList.h

  • Committer: Bazaar Package Importer
  • Author(s): Rene Engelhard
  • Date: 2008-02-12 15:22:12 UTC
  • mfrom: (1.2.1 upstream) (10.1.5 gutsy)
  • Revision ID: james.westby@ubuntu.com-20080212152212-beh3l4ahg9b4o3lj
Tags: 0.8.14-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* libwpd
2
2
 * Copyright (C) 2004 William Lachance (wrlach@gmail.com)
3
3
 * Copyright (C) 2005 Net Integration Technologies (http://www.net-itech.com)
 
4
 * Copyright (C) 2006 Fridrich Strba (fridrich.strba@bluewin.ch)
4
5
 *
5
6
 * This library is free software; you can redistribute it and/or
6
7
 * modify it under the terms of the GNU Library General Public
30
31
// we use the pimpl pattern so we don't expose any STL symbols to the rest of 
31
32
// the world.. yes, this is quite annoying.
32
33
 
33
 
class WPXMapImpl
34
 
{
35
 
public:
36
 
        virtual ~WPXMapImpl() {}
37
 
        virtual void insert(const char *name, WPXProperty *property) = 0;
38
 
        virtual const WPXProperty * operator[](const char *name) const = 0;
39
 
        virtual void remove(const char *name) = 0;
40
 
        virtual void clear() = 0;
41
 
 
42
 
        friend class WPXMapIterImpl;
43
 
};
44
 
 
45
 
class WPXMapIterImpl
46
 
{
47
 
public:
48
 
        virtual void rewind() = 0;
49
 
        virtual bool next() = 0;
50
 
        virtual bool last() = 0;
51
 
        virtual const WPXProperty * operator()() const = 0;
52
 
        virtual const char * key() = 0;
53
 
};
 
34
class WPXMapImpl;
 
35
class WPXMapIterImpl;
54
36
 
55
37
class WPXPropertyList
56
38
{
67
49
 
68
50
        void remove(const char * name);
69
51
        const WPXProperty * operator[](const char *name) const;
 
52
        const WPXPropertyList& operator=(const WPXPropertyList& propList);
70
53
        void clear();
71
54
 
72
55
        class Iter
81
64
                const char * key();
82
65
        private:
83
66
                WPXMapIterImpl *m_iterImpl;
 
67
                Iter(const Iter&);
 
68
                Iter& operator=(const Iter&);
84
69
        };
85
70
        friend class WPXPropertyList::Iter;
86
71