TagLib  1.13.1
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#include "taglib_config.h"
30
31#define TAGLIB_MAJOR_VERSION 1
32#define TAGLIB_MINOR_VERSION 13
33#define TAGLIB_PATCH_VERSION 1
34
35#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 1)) || defined(__clang__)
36#define TAGLIB_IGNORE_MISSING_DESTRUCTOR _Pragma("GCC diagnostic ignored \"-Wnon-virtual-dtor\"")
37#else
38#define TAGLIB_IGNORE_MISSING_DESTRUCTOR
39#endif
40
41#if (defined(_MSC_VER) && _MSC_VER >= 1600)
42#define TAGLIB_CONSTRUCT_BITSET(x) static_cast<unsigned long long>(x)
43#else
44#define TAGLIB_CONSTRUCT_BITSET(x) static_cast<unsigned long>(x)
45#endif
46
47#if __cplusplus >= 201402
48#define TAGLIB_DEPRECATED [[deprecated]]
49#elif defined(__GNUC__) || defined(__clang__)
50#define TAGLIB_DEPRECATED __attribute__((deprecated))
51#elif defined(_MSC_VER)
52#define TAGLIB_DEPRECATED __declspec(deprecated)
53#else
54#define TAGLIB_DEPRECATED
55#endif
56
57#include <string>
58
60
69namespace TagLib {
70
71 class String;
72
73 // These integer types are deprecated. Do not use them.
74
75 typedef wchar_t wchar; // Assumed to be sufficient to store a UTF-16 char.
76 typedef unsigned char uchar;
77 typedef unsigned short ushort;
78 typedef unsigned int uint;
79 typedef unsigned long ulong;
80 typedef unsigned long long ulonglong;
81
86 typedef std::basic_string<wchar_t> wstring;
87} // namespace TagLib
88
179#endif
A namespace for all TagLib related classes and functions.
Definition: apefile.h:41
unsigned int uint
Definition: taglib.h:78
unsigned char uchar
Definition: taglib.h:76
unsigned short ushort
Definition: taglib.h:77
unsigned long long ulonglong
Definition: taglib.h:80
unsigned long ulong
Definition: taglib.h:79
wchar_t wchar
Definition: taglib.h:75
std::basic_string< wchar_t > wstring
Definition: taglib.h:86