inLimbo
TUI Music Player that keeps you in Limbo.
 
Loading...
Searching...
No Matches
Metadata Struct Reference

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"
 
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
 

Detailed Description

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.

Member Function Documentation

◆ serialize()

template<class Archive>
void Metadata::serialize ( Archive & ar)
inline

Serialization function for Metadata.

Parameters
arThe archive used for serialization.

Member Data Documentation

◆ additionalProperties

std::unordered_map<std::string, std::string> Metadata::additionalProperties

Any additional properties from the song's metadata

◆ album

std::string Metadata::album = "Unknown Album"

The album the song is part of

◆ artist

std::string Metadata::artist = "Unknown Artist"

The artist of the song

◆ comment

std::string Metadata::comment = "No Comment"

The comment associated with the song

◆ discNumber

unsigned int Metadata::discNumber = 0

The disc number in a multi-disc set

◆ duration

float Metadata::duration = 0.0f

The duration of the song in seconds

◆ filePath

std::string Metadata::filePath

The file path of the song

◆ genre

std::string Metadata::genre = "Unknown Genre"

The genre of the song

◆ lyrics

std::string Metadata::lyrics = "No Lyrics"

The lyrics of the song

◆ title

std::string Metadata::title = "Unknown Title"

The title of the song

◆ track

unsigned int Metadata::track = 0

The track number

◆ year

unsigned int Metadata::year = 0

The year of release


The documentation for this struct was generated from the following file: