26#ifndef TAGLIB_VARIANT_H
27#define TAGLIB_VARIANT_H
36namespace TagLib {
class Variant; }
132 int toInt(
bool *ok =
nullptr)
const;
135 unsigned int toUInt(
bool *ok =
nullptr)
const;
186 class VariantPrivate;
188 std::shared_ptr<VariantPrivate> d;
A list of ByteVectors.
Definition: tbytevectorlist.h:42
A byte vector.
Definition: tbytevector.h:46
A generic, implicitly shared list.
Definition: tlist.h:54
A generic, implicitly shared map.
Definition: tmap.h:45
A list of strings.
Definition: tstringlist.h:44
A wide string class suitable for unicode.
Definition: tstring.h:83
An implicitly shared discriminated union.
Definition: tvariant.h:61
T value(bool *ok=nullptr) const
TagLib::StringList toStringList(bool *ok=nullptr) const
Variant(unsigned int val)
unsigned int toUInt(bool *ok=nullptr) const
Variant(const TagLib::List< TagLib::Variant > &val)
Variant(const TagLib::String &val)
TagLib::List< TagLib::Variant > toList(bool *ok=nullptr) const
Variant(const TagLib::ByteVector &val)
TagLib::ByteVectorList toByteVectorList(bool *ok=nullptr) const
Variant(const TagLib::ByteVectorList &val)
bool toBool(bool *ok=nullptr) const
bool operator!=(const Variant &v) const
int toInt(bool *ok=nullptr) const
Type
Definition: tvariant.h:68
@ UInt
unsigned int
Definition: tvariant.h:72
@ VariantList
VariantList
Definition: tvariant.h:80
@ String
String.
Definition: tvariant.h:76
@ LongLong
long long
Definition: tvariant.h:73
@ Int
int
Definition: tvariant.h:71
@ Void
variant is empty
Definition: tvariant.h:69
@ ByteVector
ByteVector.
Definition: tvariant.h:78
@ Bool
bool
Definition: tvariant.h:70
@ ByteVectorList
ByteVectorList.
Definition: tvariant.h:79
@ Double
double
Definition: tvariant.h:75
@ StringList
StringList.
Definition: tvariant.h:77
@ ULongLong
unsigned long long
Definition: tvariant.h:74
Variant(const Variant &v)
Variant(const TagLib::Map< TagLib::String, TagLib::Variant > &val)
unsigned long long toULongLong(bool *ok=nullptr) const
double toDouble(bool *ok=nullptr) const
Variant & operator=(const Variant &v)
TAGLIB_EXPORT std::ostream & operator<<(std::ostream &s, const TagLib::Variant &v)
TagLib::Map< TagLib::String, TagLib::Variant > toMap(bool *ok=nullptr) const
Variant(unsigned long long val)
TagLib::String toString(bool *ok=nullptr) const
TagLib::ByteVector toByteVector(bool *ok=nullptr) const
Variant(const TagLib::StringList &val)
long long toLongLong(bool *ok=nullptr) const
bool operator==(const Variant &v) const
A namespace for all TagLib related classes and functions.
Definition: apefile.h:41
#define TAGLIB_EXPORT
Definition: taglib_export.h:40
#define TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
Definition: taglib_export.h:55