A structure to hold metadata information for a song. More...
#include <taglib_parser.h>
Public Member Functions | |
| template<class Archive> | |
| void | serialize (Archive &ar) |
| Serialization function for Metadata. | |
Public Attributes | |
| std::string | title = "Unknown Title" |
| std::string | artist = "<Unknown Artist>" |
| std::string | album = "Unknown Album" |
| std::string | genre = "Unknown Genre" |
| std::string | comment = "No Comment" |
| std::string | fileType = "NULL" |
| unsigned int | year = 0 |
| unsigned int | track = 0 |
| unsigned int | discNumber = 0 |
| std::string | lyrics = "No Lyrics" |
| std::unordered_map< std::string, std::string > | additionalProperties |
| std::string | filePath |
| float | duration = 0.0f |
| int | bitrate = 0 |
A structure to hold metadata information for a song.
This structure contains various attributes related to a song, such as title, artist, album, genre, and more. It also allows additional properties and file path to be stored, along with the song's duration.
|
inline |
Serialization function for Metadata.
| ar | The archive used for serialization. |
| std::unordered_map<std::string, std::string> Metadata::additionalProperties |
Any additional properties from the song's metadata
| std::string Metadata::album = "Unknown Album" |
The album the song is part of
| std::string Metadata::artist = "<Unknown Artist>" |
The artist of the song
| int Metadata::bitrate = 0 |
The bitrate of the song (not calculated)
| std::string Metadata::comment = "No Comment" |
The comment associated with the song
| unsigned int Metadata::discNumber = 0 |
The disc number in a multi-disc set
| float Metadata::duration = 0.0f |
The duration of the song in seconds
| std::string Metadata::filePath |
The file path of the song
| std::string Metadata::fileType = "NULL" |
| std::string Metadata::genre = "Unknown Genre" |
The genre of the song
| std::string Metadata::lyrics = "No Lyrics" |
The lyrics of the song
| std::string Metadata::title = "Unknown Title" |
The title of the song
| unsigned int Metadata::track = 0 |
The track number
| unsigned int Metadata::year = 0 |
The year of release