TagLib  2.0
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
32#ifdef _MSC_VER
33// Explained at end of tpropertymap.cpp
35#endif
36
37namespace TagLib {
38
40
42
122 {
123 public:
124 using Iterator = SimplePropertyMap::Iterator;
125 using ConstIterator = SimplePropertyMap::ConstIterator;
126
129
132
135
143
146
154 bool insert(const String &key, const StringList &values);
155
163 bool replace(const String &key, const StringList &values);
164
169 Iterator find(const String &key);
170
175 ConstIterator find(const String &key) const;
176
181 bool contains(const String &key) const;
182
189 bool contains(const PropertyMap &other) const;
190
196
202
211
220 const StringList &defaultValue = StringList()) const;
221
229 const StringList &operator[](const String &key) const;
230
240
245 bool operator==(const PropertyMap &other) const;
246
251 bool operator!=(const PropertyMap &other) const;
252
265
272 void addUnsupportedData(const String &key);
273
279
282
283 private:
284 class PropertyMapPrivate;
285 std::unique_ptr<PropertyMapPrivate> d;
286 };
287
288} // namespace TagLib
289#endif /* TAGLIB_PROPERTYMAP_H */
A generic, implicitly shared list.
Definition tlist.h:54
A generic, implicitly shared map.
Definition tmap.h:45
A map for format-independent <key,values> tag representations.
Definition tpropertymap.h:122
TAGLIB_EXPORT PropertyMap(const PropertyMap &m)
TAGLIB_EXPORT PropertyMap & merge(const PropertyMap &other)
TAGLIB_EXPORT PropertyMap(const SimplePropertyMap &m)
TAGLIB_EXPORT PropertyMap()
TAGLIB_EXPORT bool contains(const PropertyMap &other) const
TAGLIB_EXPORT bool replace(const String &key, const StringList &values)
TAGLIB_EXPORT String toString() const
TAGLIB_EXPORT PropertyMap & erase(const String &key)
TAGLIB_EXPORT const StringList & operator[](const String &key) const
SimplePropertyMap::ConstIterator ConstIterator
Definition tpropertymap.h:125
TAGLIB_EXPORT bool operator==(const PropertyMap &other) const
TAGLIB_EXPORT void removeEmpty()
TAGLIB_EXPORT Iterator find(const String &key)
TAGLIB_EXPORT void addUnsupportedData(const String &key)
TAGLIB_EXPORT StringList value(const String &key, const StringList &defaultValue=StringList()) const
SimplePropertyMap::Iterator Iterator
Definition tpropertymap.h:124
TAGLIB_EXPORT bool insert(const String &key, const StringList &values)
TAGLIB_EXPORT PropertyMap & erase(const PropertyMap &other)
TAGLIB_EXPORT bool contains(const String &key) const
TAGLIB_EXPORT StringList & operator[](const String &key)
TAGLIB_EXPORT const StringList & unsupportedData() const
TAGLIB_EXPORT bool operator!=(const PropertyMap &other) const
TAGLIB_EXPORT PropertyMap & operator=(const PropertyMap &other)
TAGLIB_EXPORT ConstIterator find(const String &key) const
TAGLIB_EXPORT ~PropertyMap()
A list of strings.
Definition tstringlist.h:44
A wide string class suitable for unicode.
Definition tstring.h:83
A namespace for all TagLib related classes and functions.
Definition apefile.h:41
#define TAGLIB_EXPORT
Definition taglib_export.h:40