Represents a song with associated metadata and inode. More...
#include <songmap.hpp>
Public Member Functions | |
| Song (unsigned int inode, const Metadata &metadata) | |
| Constructs a Song with the given inode and metadata. | |
| Song () | |
| Default constructor for a Song, initializing with default values. | |
| template<class Archive> | |
| void | serialize (Archive &ar) |
| Serializes the Song object. | |
Public Attributes | |
| unsigned int | inode |
| Metadata | metadata |
Represents a song with associated metadata and inode.
The Song struct encapsulates the metadata and inode of a song, including details such as title, artist, album, genre, and track number. It provides methods to initialize, serialize, and deserialize song data.
|
inline |
Constructs a Song with the given inode and metadata.
This constructor initializes a song with a unique inode and metadata.
| inode | The inode of the song file. |
| metadata | The metadata associated with the song. |
|
inline |
Default constructor for a Song, initializing with default values.
|
inline |
| unsigned int Song::inode |
The inode of the file representing the song