-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLibraryItemsCollection.h
More file actions
43 lines (30 loc) · 955 Bytes
/
LibraryItemsCollection.h
File metadata and controls
43 lines (30 loc) · 955 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
/*
File:
LibraryItemsCollection.h
*/
#ifndef LIBRARYITEMSCOLLECTION_H
#define LIBRARYITEMSCOLLECTION_H
#include "LibraryItem.h"
#include <vector>
#include <memory>
using namespace std;
class LibraryItemsCollection
{
private:
vector<shared_ptr<LibraryItem>> items;
//Mutators
public:
LibraryItemsCollection();
~LibraryItemsCollection();
void addLibraryItem(shared_ptr<LibraryItem> item);
void editLibraryItem(int libraryID, int itemType);
bool deleteLibraryItem(const string& identifier, int deleteItemType);
void searchLibraryItemByLibraryID(int libraryID) const;
void searchLibraryItemByArtist(const string& artist) const;
void searchLibraryItemByTitle(const string& title) const;
void printItemDetails() const;
shared_ptr<LibraryItem> getLibraryItemByID(int libraryID);
vector<shared_ptr<LibraryItem>> getItemsByType(const string& type) const;
vector<shared_ptr<LibraryItem>>& getItems();
};
#endif