tpropertymap.h
Go to the documentation of this file.
1/***************************************************************************
2 copyright : (C) 2012 by Michael Helmling
3 email : helmling@mathematik.uni-kl.de
4 ***************************************************************************/
5
6/***************************************************************************
7 * This library is free software; you can redistribute it and/or modify *
8 * it under the terms of the GNU Lesser General Public License version *
9 * 2.1 as published by the Free Software Foundation. *
10 * *
11 * This library is distributed in the hope that it will be useful, but *
12 * WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
14 * Lesser General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU Lesser General Public *
17 * License along with this library; if not, write to the Free Software *
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA *
19 * 02110-1301 USA *
20 * *
21 * Alternatively, this file is available under the Mozilla Public *
22 * License Version 1.1. You may obtain a copy of the License at *
23 * http://www.mozilla.org/MPL/ *
24 ***************************************************************************/
25
26#ifndef TAGLIB_PROPERTYMAP_H_
27#define TAGLIB_PROPERTYMAP_H_
28
29#include "tmap.h"
30#include "tstringlist.h"
31
32namespace TagLib {
33
35
37
109 {
110 public:
111
112 typedef SimplePropertyMap::Iterator Iterator;
113 typedef SimplePropertyMap::ConstIterator ConstIterator;
114
116
118
125
126 virtual ~PropertyMap();
127
134 bool insert(const String &key, const StringList &values);
135
142 bool replace(const String &key, const StringList &values);
143
147 Iterator find(const String &key);
148
152 ConstIterator find(const String &key) const;
153
157 bool contains(const String &key) const;
158
164 bool contains(const PropertyMap &other) const;
165
170
175
183
190 const StringList &operator[](const String &key) const;
191
200
204 bool operator==(const PropertyMap &other) const;
205
209 bool operator!=(const PropertyMap &other) const;
210
222
227
229
230 private:
231
232
233 StringList unsupported;
234 };
235
236}
237#endif /* TAGLIB_PROPERTYMAP_H_ */
A generic, implicitly shared map.
Definition: tmap.h:44
A map for format-independent <key,valuelist> tag representations.
Definition: tpropertymap.h:109
bool contains(const String &key) const
const StringList & operator[](const String &key) const
bool operator!=(const PropertyMap &other) const
PropertyMap & merge(const PropertyMap &other)
StringList & operator[](const String &key)
Iterator find(const String &key)
const StringList & unsupportedData() const
SimplePropertyMap::Iterator Iterator
Definition: tpropertymap.h:112
ConstIterator find(const String &key) const
virtual ~PropertyMap()
SimplePropertyMap::ConstIterator ConstIterator
Definition: tpropertymap.h:113
bool contains(const PropertyMap &other) const
StringList & unsupportedData()
PropertyMap & erase(const PropertyMap &other)
String toString() const
bool replace(const String &key, const StringList &values)
PropertyMap & erase(const String &key)
bool insert(const String &key, const StringList &values)
PropertyMap(const SimplePropertyMap &m)
PropertyMap(const PropertyMap &m)
bool operator==(const PropertyMap &other) const
A list of strings.
Definition: tstringlist.h:46
A wide string class suitable for unicode.
Definition: tstring.h:85
A namespace for all TagLib related classes and functions.
Definition: apefile.h:41
Map< String, StringList > SimplePropertyMap
Definition: tpropertymap.h:34
#define TAGLIB_EXPORT
Definition: taglib_export.h:40