movie.h
Go to the documentation of this file.
#ifndef MOVIE_H
#define MOVIE_H
#include <string>
#include <QDebug>
#include "filemanip.h"
#include <QString>
#include <QStringList>
#include <iostream>
using namespace std ;
string getMovieByName(string, filemanip & ) ;
string getMovieByPosition(int, filemanip &) ;
void showMovies(filemanip &, int=1, int=10) ;
void showMovies(filemanip &file, string keyword);
void showMovie(string) ;
string getMovieName(string) ;
string getMovieRating(string) ;
string getMovieYear(string) ;
string getMovieGenre(string) ;
void getMovieInfo(string, string &, string &, string &,
string &);
#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.