My Project

- Main Page
- Classes
- Files

- File List
- File Members

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
getMovieGenre
string getMovieGenre(string)
Given a movie line from the file returns the movie genre.
Definition: movie.cpp:125
getMovieByPosition
string getMovieByPosition(int, filemanip &)
Finds a movie in position position of a file and returns the name of the movie.
Definition: movie.cpp:3
getMovieYear
string getMovieYear(string)
Given a movie line from the file returns the movie release year.
Definition: movie.cpp:114
filemanip
Definition: filemanip.h:8
std
showMovie
void showMovie(string)
Display the movie information of a | separated line with movie info. Example line: Ninja Turtles: The...
Definition: movie.cpp:43
getMovieRating
string getMovieRating(string)
Given a movie line from the file returns the movie rating.
Definition: movie.cpp:103
getMovieByName
string getMovieByName(string, filemanip &)
Finds the information of a movie given its name.
Definition: movie.cpp:26
getMovieName
string getMovieName(string)
Given a movie line from the file returns the movie name.
Definition: movie.cpp:93
showMovies
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
getMovieInfo
void getMovieInfo(string, string &, string &, string &, string &)
Given a movie line from the file returns by reference the movie name, rating, year, and genre.