-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTrackList.h
More file actions
47 lines (43 loc) · 781 Bytes
/
TrackList.h
File metadata and controls
47 lines (43 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#pragma once
#include <iostream>
using namespace std;
#include "Album.h"
#include "Artist.h"
#include "Track.h"
struct IDTrack
{
int ID;
IDTrack* pPrev;
IDTrack* pNext;
IDTrack(int id);
bool operator==(IDTrack Cell);
};
class ListTracks
{
int Size;
IDTrack* pHead;
IDTrack* pTail;
public:
ListTracks();
void Add(int Cell);
IDTrack* GetpHead();
void DeleteNode(IDTrack Cell);
IDTrack GetIDTrackByID(int ID);
};
struct TrackList
{
int ID;
int Track_Count;
ListTracks IDs;
string Path;
TrackList();
int ReCount();
void Set(int IDd, int Count, ListTracks list, string path);
void UploadTrackList(string path);
bool Exists(int Name);
bool operator==(TrackList Cell);
void Add(int ID);
void UpdateFile();
void DeleteTrack(int ID);
void PrintListOfIDs();
};