-
Notifications
You must be signed in to change notification settings - Fork 0
/
Query.h
27 lines (19 loc) · 777 Bytes
/
Query.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
#ifndef HW9_QUERY_H
#define HW9_QUERY_H
#include <string>
#include "MovieData.h"
class Query {
public:
Query(const std::string &atitle, const std::string &ayear, const std::string &aruntime, const std::list<std::string> &aGenre,
const std::list<std::string> &aActor, const std::list<std::string> &aRole) :
title(atitle), year(ayear), runtime(aruntime),
GenreList(aGenre), ActorList(aActor), RoleList(aRole) {};
explicit Query(std::istream &stream);
std::pair<Query, std::list<MovieData *> > compare(std::list<MovieData> &movielist);
std::string long_str();
private:
//REPRESENTATION
std::string title, year, runtime;
std::list<std::string> GenreList, ActorList, RoleList;
};
#endif