My Project
movie.h
Go to the documentation of this file.
1 #ifndef MOVIE_H
2 #define MOVIE_H
3 
5 
6 #include <string>
7 #include <QDebug>
8 #include "filemanip.h"
9 #include <QString>
10 #include <QStringList>
11 #include <iostream>
12 
13 using namespace std ;
14 
26 string getMovieByName(string, filemanip & ) ;
27 
41 string getMovieByPosition(int, filemanip &) ;
42 
56 void showMovies(filemanip &, int=1, int=10) ;
57 
68 void showMovies(filemanip &, string) ;
69 
80 void showMovie(string) ;
81 
82 
92 string getMovieName(string) ;
93 
104 string getMovieRating(string) ;
105 
116 string getMovieYear(string) ;
117 
128 string getMovieGenre(string) ;
129 
146 void getMovieInfo(string, string &, string &, string &,
147  string &);
148 
149 
162 // Exercise 3, question 1
163 string getMovieStudio(string) ;
164 
165 
186 // Exercise 3, question 2
187 void getMovieInfo(string, string &, string &, string &,
188  string &, string &);
189 
203 // Exercise 3, question 3
204 void showMovieInLine(string) ;
205 
221 // Exercise 3, question 4
222 void showMoviesInLine(filemanip &, int=1, int=10) ;
223 
224 #endif // MOVIE_H
string getMovieGenre(string)
Given a movie line from the file returns the movie genre.
Definition: movie.cpp:223
string getMovieByPosition(int, filemanip &)
Finds a movie in position position of a file and returns the name of the movie.
Definition: movie.cpp:18
string getMovieStudio(string)
Given a movie line from the file returns the movie studio. Answer to (Exercise 3, question 1) ...
Definition: movie.cpp:279
string getMovieYear(string)
Given a movie line from the file returns the movie release year.
Definition: movie.cpp:202
Definition: filemanip.h:12
void showMovieInLine(string)
Display the movie information of a | separated line with movie info. The info is displayed in one lin...
Definition: movie.cpp:341
void showMoviesInLine(filemanip &, int=1, int=10)
Display the information of the movies in a file from line start to line end. The information is displ...
Definition: movie.cpp:370
void showMovie(string)
Display the movie information of a | separated line with movie info. Example line: Ninja Turtles: The...
Definition: movie.cpp:78
string getMovieRating(string)
Given a movie line from the file returns the movie rating.
Definition: movie.cpp:181
string getMovieByName(string, filemanip &)
Finds the information of a movie given its name.
Definition: movie.cpp:51
string getMovieName(string)
Given a movie line from the file returns the movie name.
Definition: movie.cpp:160
void showMovies(filemanip &, int=1, int=10)
Display the information of the movies in a file from line start to line end.
Definition: movie.cpp:104
void getMovieInfo(string, string &, string &, string &, string &)
Given a movie line from the file returns by reference the movie name, rating, year, and genre.
Definition: movie.cpp:250