TagLib 1.7.2 (taglib.h Source File)
Home
Class Hierarchy
Namespaces
Classes
Headers
Namespace Members
Class Members
File Members
taglib
toolkit
taglib.h
Go to the documentation of this file.
1
/***************************************************************************
2
copyright : (C) 2002 - 2008 by Scott Wheeler
3
email : wheeler@kde.org
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_H
27
#define TAGLIB_H
28
29
#define TAGLIB_MAJOR_VERSION 1
30
#define TAGLIB_MINOR_VERSION 7
31
#define TAGLIB_PATCH_VERSION 0
32
33
#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 1))
34
#define TAGLIB_IGNORE_MISSING_DESTRUCTOR _Pragma("GCC diagnostic ignored \"-Wnon-virtual-dtor\"")
35
#else
36
#define TAGLIB_IGNORE_MISSING_DESTRUCTOR
37
#endif
38
39
#if (defined(_MSC_VER) && _MSC_VER >= 1600)
40
#define TAGLIB_CONSTRUCT_BITSET(x) static_cast<unsigned long long>(x)
41
#else
42
#define TAGLIB_CONSTRUCT_BITSET(x) static_cast<unsigned long>(x)
43
#endif
44
45
#include <string>
46
48
57
namespace
TagLib {
58
59
class
String
;
60
61
typedef
wchar_t
wchar
;
62
typedef
unsigned
char
uchar
;
63
typedef
unsigned
int
uint
;
64
typedef
unsigned
long
ulong
;
65
70
typedef
std::basic_string<wchar>
wstring
;
71
72
#ifndef DO_NOT_DOCUMENT // Tell Doxygen to skip this class.
73
80
class
RefCounter
81
{
82
public
:
83
RefCounter() : refCount(1) {}
84
void
ref() { refCount++; }
85
bool
deref() {
return
! --refCount ; }
86
int
count() {
return
refCount; }
87
private
:
88
uint
refCount;
89
};
90
91
#endif // DO_NOT_DOCUMENT
92
93
}
94
186
#endif