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
45
class
TAGLIB_EXPORT
PropertyMap
:
public
SimplePropertyMap
46
{
47
public
:
48
49
typedef
SimplePropertyMap::Iterator
Iterator
;
50
typedef
SimplePropertyMap::ConstIterator
ConstIterator
;
51
52
PropertyMap
();
53
54
PropertyMap
(
const
PropertyMap
&m);
55
61
PropertyMap
(
const
SimplePropertyMap
&m);
62
63
virtual
~
PropertyMap
();
64
71
bool
insert(
const
String
&key,
const
StringList
&values);
72
79
bool
replace(
const
String
&key,
const
StringList
&values);
80
84
Iterator
find(
const
String
&key);
85
89
ConstIterator
find(
const
String
&key)
const
;
90
94
bool
contains(
const
String
&key)
const
;
95
101
bool
contains(
const
PropertyMap
&other)
const
;
102
106
PropertyMap
&erase(
const
String
&key);
107
111
PropertyMap
&erase(
const
PropertyMap
&other);
112
119
PropertyMap
&merge(
const
PropertyMap
&other);
120
127
const
StringList
&operator[](
const
String
&key)
const
;
128
136
StringList
&operator[](
const
String
&key);
137
141
bool
operator==(
const
PropertyMap
&other)
const
;
142
146
bool
operator!=(
const
PropertyMap
&other)
const
;
147
157
StringList
&unsupportedData();
158
const
StringList
&unsupportedData()
const
;
159
163
void
removeEmpty();
164
165
String
toString()
const
;
166
167
private
:
168
169
170
StringList
unsupported;
171
};
172
173
}
174
#endif
/* PROPERTYMAP_H_ */