123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
- <meta http-equiv="X-UA-Compatible" content="IE=9"/>
- <meta name="generator" content="Doxygen 1.8.9.1"/>
- <title>My Project: movie.h File Reference</title>
- <link href="tabs.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="jquery.js"></script>
- <script type="text/javascript" src="dynsections.js"></script>
- <link href="search/search.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="search/searchdata.js"></script>
- <script type="text/javascript" src="search/search.js"></script>
- <script type="text/javascript">
- $(document).ready(function() { init_search(); });
- </script>
- <link href="doxygen.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
- <div id="titlearea">
- <table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
- <td style="padding-left: 0.5em;">
- <div id="projectname">My Project
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <!-- end header part -->
- <!-- Generated by Doxygen 1.8.9.1 -->
- <script type="text/javascript">
- var searchBox = new SearchBox("searchBox", "search",false,'Search');
- </script>
- <div id="navrow1" class="tabs">
- <ul class="tablist">
- <li><a href="index.html"><span>Main Page</span></a></li>
- <li><a href="annotated.html"><span>Classes</span></a></li>
- <li class="current"><a href="files.html"><span>Files</span></a></li>
- <li>
- <div id="MSearchBox" class="MSearchBoxInactive">
- <span class="left">
- <img id="MSearchSelect" src="search/mag_sel.png"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- alt=""/>
- <input type="text" id="MSearchField" value="Search" accesskey="S"
- onfocus="searchBox.OnSearchFieldFocus(true)"
- onblur="searchBox.OnSearchFieldFocus(false)"
- onkeyup="searchBox.OnSearchFieldChange(event)"/>
- </span><span class="right">
- <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
- </span>
- </div>
- </li>
- </ul>
- </div>
- <div id="navrow2" class="tabs2">
- <ul class="tablist">
- <li><a href="files.html"><span>File List</span></a></li>
- <li><a href="globals.html"><span>File Members</span></a></li>
- </ul>
- </div>
- <!-- window showing the filter options -->
- <div id="MSearchSelectWindow"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- onkeydown="return searchBox.OnSearchSelectKey(event)">
- </div>
-
- <!-- iframe showing the search results (closed by default) -->
- <div id="MSearchResultsWindow">
- <iframe src="javascript:void(0)" frameborder="0"
- name="MSearchResults" id="MSearchResults">
- </iframe>
- </div>
-
- </div><!-- top -->
- <div class="header">
- <div class="summary">
- <a href="#func-members">Functions</a> </div>
- <div class="headertitle">
- <div class="title">movie.h File Reference</div> </div>
- </div><!--header-->
- <div class="contents">
- <div class="textblock"><code>#include <string></code><br />
- <code>#include <QDebug></code><br />
- <code>#include "filemanip.h"</code><br />
- <code>#include <QString></code><br />
- <code>#include <QStringList></code><br />
- <code>#include <iostream></code><br />
- </div>
- <p><a href="movie_8h_source.html">Go to the source code of this file.</a></p>
- <table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
- Functions</h2></td></tr>
- <tr class="memitem:aa2ca3be9f1d904e9f177faa425745236"><td class="memItemLeft" align="right" valign="top">string </td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8h.html#aa2ca3be9f1d904e9f177faa425745236">getMovieByName</a> (string, <a class="el" href="classfilemanip.html">filemanip</a> &)</td></tr>
- <tr class="memdesc:aa2ca3be9f1d904e9f177faa425745236"><td class="mdescLeft"> </td><td class="mdescRight">Finds the information of a movie given its name. <a href="#aa2ca3be9f1d904e9f177faa425745236">More...</a><br /></td></tr>
- <tr class="separator:aa2ca3be9f1d904e9f177faa425745236"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aebd1da153f25f87661ac630b47737097"><td class="memItemLeft" align="right" valign="top">string </td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8h.html#aebd1da153f25f87661ac630b47737097">getMovieByPosition</a> (int, <a class="el" href="classfilemanip.html">filemanip</a> &)</td></tr>
- <tr class="memdesc:aebd1da153f25f87661ac630b47737097"><td class="mdescLeft"> </td><td class="mdescRight">Finds a movie in position position of a file and returns the name of the movie. <a href="#aebd1da153f25f87661ac630b47737097">More...</a><br /></td></tr>
- <tr class="separator:aebd1da153f25f87661ac630b47737097"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a39efa4469877528f52e365bba5d35c30"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8h.html#a39efa4469877528f52e365bba5d35c30">showMovies</a> (<a class="el" href="classfilemanip.html">filemanip</a> &, int=1, int=10)</td></tr>
- <tr class="memdesc:a39efa4469877528f52e365bba5d35c30"><td class="mdescLeft"> </td><td class="mdescRight">Display the information of the movies in a file from line start to line end. <a href="#a39efa4469877528f52e365bba5d35c30">More...</a><br /></td></tr>
- <tr class="separator:a39efa4469877528f52e365bba5d35c30"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a2200ec80d18eede5241b99afcffb509a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8h.html#a2200ec80d18eede5241b99afcffb509a">showMovies</a> (<a class="el" href="classfilemanip.html">filemanip</a> &file, string keyword)</td></tr>
- <tr class="memdesc:a2200ec80d18eede5241b99afcffb509a"><td class="mdescLeft"> </td><td class="mdescRight">Display the information of the movies whose name contains a given keyword. <a href="#a2200ec80d18eede5241b99afcffb509a">More...</a><br /></td></tr>
- <tr class="separator:a2200ec80d18eede5241b99afcffb509a"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:af71e2fccff041af5f808e210a9cbb06f"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8h.html#af71e2fccff041af5f808e210a9cbb06f">showMovie</a> (string)</td></tr>
- <tr class="memdesc:af71e2fccff041af5f808e210a9cbb06f"><td class="mdescLeft"> </td><td class="mdescRight">Display the movie information of a | separated line with movie info. Example line: Ninja Turtles: The Next Mutation, Vol. 1|Shout! Factory||Out|2.0|4:3|19.93|NR|1997|. <a href="#af71e2fccff041af5f808e210a9cbb06f">More...</a><br /></td></tr>
- <tr class="separator:af71e2fccff041af5f808e210a9cbb06f"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a5b13bb4e2035100dcf27abad21a2e862"><td class="memItemLeft" align="right" valign="top">string </td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8h.html#a5b13bb4e2035100dcf27abad21a2e862">getMovieName</a> (string)</td></tr>
- <tr class="memdesc:a5b13bb4e2035100dcf27abad21a2e862"><td class="mdescLeft"> </td><td class="mdescRight">Given a movie line from the file returns the movie name. <a href="#a5b13bb4e2035100dcf27abad21a2e862">More...</a><br /></td></tr>
- <tr class="separator:a5b13bb4e2035100dcf27abad21a2e862"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:af50291017de186a0a663e8418d65b7ef"><td class="memItemLeft" align="right" valign="top">string </td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8h.html#af50291017de186a0a663e8418d65b7ef">getMovieRating</a> (string)</td></tr>
- <tr class="memdesc:af50291017de186a0a663e8418d65b7ef"><td class="mdescLeft"> </td><td class="mdescRight">Given a movie line from the file returns the movie rating. <a href="#af50291017de186a0a663e8418d65b7ef">More...</a><br /></td></tr>
- <tr class="separator:af50291017de186a0a663e8418d65b7ef"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ad378998f3ab769b47a1bbc4672496f45"><td class="memItemLeft" align="right" valign="top">string </td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8h.html#ad378998f3ab769b47a1bbc4672496f45">getMovieYear</a> (string)</td></tr>
- <tr class="memdesc:ad378998f3ab769b47a1bbc4672496f45"><td class="mdescLeft"> </td><td class="mdescRight">Given a movie line from the file returns the movie release year. <a href="#ad378998f3ab769b47a1bbc4672496f45">More...</a><br /></td></tr>
- <tr class="separator:ad378998f3ab769b47a1bbc4672496f45"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aaa2e1332e82b931cf45663e755cc2302"><td class="memItemLeft" align="right" valign="top">string </td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8h.html#aaa2e1332e82b931cf45663e755cc2302">getMovieGenre</a> (string)</td></tr>
- <tr class="memdesc:aaa2e1332e82b931cf45663e755cc2302"><td class="mdescLeft"> </td><td class="mdescRight">Given a movie line from the file returns the movie genre. <a href="#aaa2e1332e82b931cf45663e755cc2302">More...</a><br /></td></tr>
- <tr class="separator:aaa2e1332e82b931cf45663e755cc2302"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ac0080d980b2f73f9eaa089f8eddeba60"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8h.html#ac0080d980b2f73f9eaa089f8eddeba60">getMovieInfo</a> (string, string &, string &, string &, string &)</td></tr>
- <tr class="memdesc:ac0080d980b2f73f9eaa089f8eddeba60"><td class="mdescLeft"> </td><td class="mdescRight">Given a movie line from the file returns by reference the movie name, rating, year, and genre. <a href="#ac0080d980b2f73f9eaa089f8eddeba60">More...</a><br /></td></tr>
- <tr class="separator:ac0080d980b2f73f9eaa089f8eddeba60"><td class="memSeparator" colspan="2"> </td></tr>
- </table>
- <h2 class="groupheader">Function Documentation</h2>
- <a class="anchor" id="aa2ca3be9f1d904e9f177faa425745236"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">string getMovieByName </td>
- <td>(</td>
- <td class="paramtype">string </td>
- <td class="paramname"><em>moviename</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype"><a class="el" href="classfilemanip.html">filemanip</a> & </td>
- <td class="paramname"><em>file</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
-
- <p>Finds the information of a movie given its name. </p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">moviename</td><td>The name of the movie </td></tr>
- <tr><td class="paramname">file</td><td>A file pointer </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>One line with the information of the movie separated by | (pipes) </dd></dl>
-
- </div>
- </div>
- <a class="anchor" id="aebd1da153f25f87661ac630b47737097"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">string getMovieByPosition </td>
- <td>(</td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>position</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype"><a class="el" href="classfilemanip.html">filemanip</a> & </td>
- <td class="paramname"><em>file</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
-
- <p>Finds a movie in position position of a file and returns the name of the movie. </p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">position</td><td>Position of the movie in the file </td></tr>
- <tr><td class="paramname">file</td><td>A file pointer </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>The name of the movie </dd></dl>
-
- </div>
- </div>
- <a class="anchor" id="aaa2e1332e82b931cf45663e755cc2302"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">string getMovieGenre </td>
- <td>(</td>
- <td class="paramtype">string </td>
- <td class="paramname"><em>movieinfo</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
-
- <p>Given a movie line from the file returns the movie genre. </p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">movieinfo</td><td>The information of the movie in one line separated by | </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>The movie genre. </dd></dl>
-
- </div>
- </div>
- <a class="anchor" id="ac0080d980b2f73f9eaa089f8eddeba60"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void getMovieInfo </td>
- <td>(</td>
- <td class="paramtype">string </td>
- <td class="paramname">, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">string & </td>
- <td class="paramname">, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">string & </td>
- <td class="paramname">, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">string & </td>
- <td class="paramname">, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">string & </td>
- <td class="paramname"> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
-
- <p>Given a movie line from the file returns by reference the movie name, rating, year, and genre. </p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">movieinfo</td><td>The information of the movie in one line separated by | </td></tr>
- </table>
- </dd>
- </dl>
-
- </div>
- </div>
- <a class="anchor" id="a5b13bb4e2035100dcf27abad21a2e862"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">string getMovieName </td>
- <td>(</td>
- <td class="paramtype">string </td>
- <td class="paramname"><em>movieinfo</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
-
- <p>Given a movie line from the file returns the movie name. </p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">movieinfo</td><td>The information of the movie in one line separated by | </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>Movie name </dd></dl>
-
- </div>
- </div>
- <a class="anchor" id="af50291017de186a0a663e8418d65b7ef"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">string getMovieRating </td>
- <td>(</td>
- <td class="paramtype">string </td>
- <td class="paramname"><em>movieinfo</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
-
- <p>Given a movie line from the file returns the movie rating. </p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">movieinfo</td><td>The information of the movie in one line separated by | </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>The movie rating </dd></dl>
-
- </div>
- </div>
- <a class="anchor" id="ad378998f3ab769b47a1bbc4672496f45"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">string getMovieYear </td>
- <td>(</td>
- <td class="paramtype">string </td>
- <td class="paramname"><em>movieinfo</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
-
- <p>Given a movie line from the file returns the movie release year. </p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">movieinfo</td><td>The information of the movie in one line separated by | </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>The movie release year. </dd></dl>
-
- </div>
- </div>
- <a class="anchor" id="af71e2fccff041af5f808e210a9cbb06f"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void showMovie </td>
- <td>(</td>
- <td class="paramtype">string </td>
- <td class="paramname"><em>movieinfo</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
-
- <p>Display the movie information of a | separated line with movie info. Example line: Ninja Turtles: The Next Mutation, Vol. 1|Shout! Factory||Out|2.0|4:3|19.93|NR|1997|. </p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">movieinfo</td><td>The information of the movie in one line separated by | </td></tr>
- </table>
- </dd>
- </dl>
-
- </div>
- </div>
- <a class="anchor" id="a39efa4469877528f52e365bba5d35c30"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void showMovies </td>
- <td>(</td>
- <td class="paramtype"><a class="el" href="classfilemanip.html">filemanip</a> & </td>
- <td class="paramname"><em>file</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>start</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>end</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
-
- <p>Display the information of the movies in a file from line start to line end. </p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">file</td><td>Pointer to a file. </td></tr>
- <tr><td class="paramname">start</td><td>Line in the file to start showing movie info. </td></tr>
- <tr><td class="paramname">end</td><td>Line in the file to stop showing movie information. </td></tr>
- </table>
- </dd>
- </dl>
-
- </div>
- </div>
- <a class="anchor" id="a2200ec80d18eede5241b99afcffb509a"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void showMovies </td>
- <td>(</td>
- <td class="paramtype"><a class="el" href="classfilemanip.html">filemanip</a> & </td>
- <td class="paramname"><em>file</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">string </td>
- <td class="paramname"><em>keyword</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
-
- <p>Display the information of the movies whose name contains a given keyword. </p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">file</td><td>Pointer to a file. </td></tr>
- <tr><td class="paramname">keyword</td><td>Keyword to search in the name of the movies. </td></tr>
- </table>
- </dd>
- </dl>
-
- </div>
- </div>
- </div><!-- contents -->
- <!-- start footer part -->
- <hr class="footer"/><address class="footer"><small>
- Generated on Thu Aug 27 2015 14:56:21 for My Project by  <a href="http://www.doxygen.org/index.html">
- <img class="footer" src="doxygen.png" alt="doxygen"/>
- </a> 1.8.9.1
- </small></address>
- </body>
- </html>
|