-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLibrarySystem.h
31 lines (28 loc) · 959 Bytes
/
LibrarySystem.h
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
#ifndef LIBRARYSYSTEM_H
#define LIBRARYSYSTEM_H
#include "Movie.h"
#include "User.h"
#include <fstream>
class LibrarySystem {
private:
Movie* movies = new Movie();
User* user = new User();
Movie* nonCheckedMovies = new Movie();
int lastCalledFunctionNumber = -1;
public:
LibrarySystem();
~LibrarySystem();
bool differentThanLastCalledFunction(int functionNumber);
void updateUsersCheckedMovies(int movieId);
void addMovie(const int movieId, const string movieTitle, const int year);
void deleteMovie(const int movieId);
void addUser(const int userId, const string userName);
void deleteUser(const int userId);
void checkoutMovie(const int movieId, const int userId);
void returnMovie(const int movieId);
void showAllMovies();
void showMovie(const int movieId);
void showUser(const int userId);
void updateNonCheckedMovies();
};
#endif //LIBRARYSYSTEM_H