26 #ifndef TAGLIB_VARIANT_H 27 #define TAGLIB_VARIANT_H 36 namespace TagLib {
class Variant; }
92 Variant(
unsigned long long val);
123 bool isEmpty()
const;
132 int toInt(
bool *ok =
nullptr)
const;
135 unsigned int toUInt(
bool *ok =
nullptr)
const;
137 long long toLongLong(
bool *ok =
nullptr)
const;
139 unsigned long long toULongLong(
bool *ok =
nullptr)
const;
141 bool toBool(
bool *ok =
nullptr)
const;
143 double toDouble(
bool *ok =
nullptr)
const;
165 T value(
bool *ok =
nullptr)
const;
171 bool operator==(
const Variant &v)
const;
176 bool operator!=(
const Variant &v)
const;
186 class VariantPrivate;
188 std::shared_ptr<VariantPrivate> d;
A list of ByteVectors.
Definition: tbytevectorlist.h:41
A generic, implicitly shared list.
Definition: tlist.h:53
String.
Definition: tvariant.h:76
bool
Definition: tvariant.h:70
TAGLIB_EXPORT std::ostream & operator<<(std::ostream &s, const TagLib::ByteVector &v)
T value(bool *ok=nullptr) const
int
Definition: tvariant.h:71
An implicitly shared discriminated union.
Definition: tvariant.h:60
A wide string class suitable for unicode.
Definition: tstring.h:82
A byte vector.
Definition: tbytevector.h:45
VariantList
Definition: tvariant.h:80
#define TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
Definition: taglib_export.h:55
ByteVectorList.
Definition: tvariant.h:79
unsigned int
Definition: tvariant.h:72
A generic, implicitly shared map.
Definition: tmap.h:44
A list of strings.
Definition: tstringlist.h:43
StringList.
Definition: tvariant.h:77
ByteVector.
Definition: tvariant.h:78
#define TAGLIB_EXPORT
Definition: taglib_export.h:40
double
Definition: tvariant.h:75
unsigned long long
Definition: tvariant.h:74
Type
Definition: tvariant.h:68
variant is empty
Definition: tvariant.h:69
long long
Definition: tvariant.h:73
TAGLIB_EXPORT unsigned int toUInt(const ByteVector &data)
A namespace for all TagLib related classes and functions.
Definition: apefile.h:41