TagLib API Documentation
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
36#endif
37
38namespace TagLib {
39
41
43
123 {
124 public:
125 using Iterator = SimplePropertyMap::Iterator;
126 using ConstIterator = SimplePropertyMap::ConstIterator;
127
130
133
136
144
147
155 bool insert(const String &key, const StringList &values);
156
164 bool replace(const String &key, const StringList &values);
165
170 Iterator find(const String &key);
171
176 ConstIterator find(const String &key) const;
177
182 bool contains(const String &key) const;
183
190 bool contains(const PropertyMap &other) const;
191
197
203
212
221 const StringList &defaultValue = StringList()) const;
222
230 const StringList &operator[](const String &key) const;
231
241
246 bool operator==(const PropertyMap &other) const;
247
252 bool operator!=(const PropertyMap &other) const;
253
266
273 void addUnsupportedData(const String &key);
274
280
283
284 private:
285 class PropertyMapPrivate;
286 std::unique_ptr<PropertyMapPrivate> d;
287 };
288
289} // namespace TagLib
290#endif /* TAGLIB_PROPERTYMAP_H */
A generic, implicitly shared map.
Definition: tmap.h:45
A map for format-independent <key,values> tag representations.
Definition: tpropertymap.h:123
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:126
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:125
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
#define TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
Definition: taglib_export.h:55