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 &file, string keyword);
69 
70 
81 void showMovie(string) ;
82 
83 
84 
94 string getMovieName(string) ;
95 
106 string getMovieRating(string) ;
107 
118 string getMovieYear(string) ;
119 
130 string getMovieGenre(string) ;
131 
148 void getMovieInfo(string, string &, string &, string &,
149  string &);
150 
151 
152 #endif // MOVIE_H
string getMovieGenre(string)
Given a movie line from the file returns the movie genre.
Definition: movie.cpp:125
string getMovieByPosition(int, filemanip &)
Finds a movie in position position of a file and returns the name of the movie.
Definition: movie.cpp:3
string getMovieYear(string)
Given a movie line from the file returns the movie release year.
Definition: movie.cpp:114
Definition: filemanip.h:8
void showMovie(string)
Display the movie information of a | separated line with movie info. Example line: Ninja Turtles: The...
Definition: movie.cpp:43
string getMovieRating(string)
Given a movie line from the file returns the movie rating.
Definition: movie.cpp:103
string getMovieByName(string, filemanip &)
Finds the information of a movie given its name.
Definition: movie.cpp:26
string getMovieName(string)
Given a movie line from the file returns the movie name.
Definition: movie.cpp:93
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:56
void getMovieInfo(string, string &, string &, string &, string &)
Given a movie line from the file returns by reference the movie name, rating, year, and genre.