TagLib 1.8.0 (tpropertymap.h Source File)
Home
Class Hierarchy
Namespaces
Classes
Headers
Namespace Members
Class Members
File Members
taglib
toolkit
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, *
19
* MA 02110-1301 USA *
20
***************************************************************************/
21
22
#ifndef PROPERTYMAP_H_
23
#define PROPERTYMAP_H_
24
25
#include "
tmap.h
"
26
#include "
tstringlist.h
"
27
28
namespace
TagLib {
29
30
typedef
Map<String,StringList>
SimplePropertyMap
;
31
33
104
class
TAGLIB_EXPORT
PropertyMap
:
public
SimplePropertyMap
105
{
106
public
:
107
108
typedef
SimplePropertyMap::Iterator
Iterator
;
109
typedef
SimplePropertyMap::ConstIterator
ConstIterator
;
110
111
PropertyMap
();
112
113
PropertyMap
(
const
PropertyMap
&m);
114
120
PropertyMap
(
const
SimplePropertyMap
&m);
121
122
virtual
~
PropertyMap
();
123
130
bool
insert(
const
String
&key,
const
StringList
&values);
131
138
bool
replace(
const
String
&key,
const
StringList
&values);
139
143
Iterator
find(
const
String
&key);
144
148
ConstIterator
find(
const
String
&key)
const
;
149
153
bool
contains(
const
String
&key)
const
;
154
160
bool
contains(
const
PropertyMap
&other)
const
;
161
165
PropertyMap
&erase(
const
String
&key);
166
170
PropertyMap
&erase(
const
PropertyMap
&other);
171
178
PropertyMap
&merge(
const
PropertyMap
&other);
179
186
const
StringList
&operator[](
const
String
&key)
const
;
187
195
StringList
&operator[](
const
String
&key);
196
200
bool
operator==(
const
PropertyMap
&other)
const
;
201
205
bool
operator!=(
const
PropertyMap
&other)
const
;
206
216
StringList
&unsupportedData();
217
const
StringList
&unsupportedData()
const
;
218
222
void
removeEmpty();
223
224
String
toString()
const
;
225
226
private
:
227
228
229
StringList
unsupported;
230
};
231
232
}
233
#endif
/* PROPERTYMAP_H_ */