-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDirector.h
55 lines (44 loc) · 1.14 KB
/
Director.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef DIRECTOR_H
#define DIRECTOR_H
#include <iostream>
#include <string>
#include <forward_list>
#include <map>
#include "Movie.h"
#include <unordered_map>
#include "AVL.h"
#include "Genre.cpp"
// forward declaration
class Movie;
class DirectorAVL;
//enum Genre;
using namespace std;
class Director
{
public:
string name;
int fbLikesForDirector;
forward_list<Movie *> movieList;
//static unordered_map<string, DirectorAVL> allDirectors; //avl sorted on name
// constructor
Director();
Director(string);
Director(string, int);
// setters
void setName(string);
void setLikes(int);
void addMovie(Movie *);
// getters
string getName();
int getLikes();
forward_list<Movie*> getMovies();
// add to main map of directors
void static addDirector(Director*);
// methods related to director
static Director *searchDir(string, unordered_map<string, DirectorAVL>, bool = false);
static void getDirectorOfGenre(string,unordered_map<Genre, map<string, forward_list<Movie *>, greater<string>>>);
//utitlity methods
void displayDirector();
void displayMovies();
};
#endif