Нет описания

movie_8h.html 29KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.9.1"/>
  7. <title>My Project: movie.h File Reference</title>
  8. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  9. <script type="text/javascript" src="jquery.js"></script>
  10. <script type="text/javascript" src="dynsections.js"></script>
  11. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  12. <script type="text/javascript" src="search/searchdata.js"></script>
  13. <script type="text/javascript" src="search/search.js"></script>
  14. <script type="text/javascript">
  15. $(document).ready(function() { init_search(); });
  16. </script>
  17. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  18. </head>
  19. <body>
  20. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  21. <div id="titlearea">
  22. <table cellspacing="0" cellpadding="0">
  23. <tbody>
  24. <tr style="height: 56px;">
  25. <td style="padding-left: 0.5em;">
  26. <div id="projectname">My Project
  27. </div>
  28. </td>
  29. </tr>
  30. </tbody>
  31. </table>
  32. </div>
  33. <!-- end header part -->
  34. <!-- Generated by Doxygen 1.8.9.1 -->
  35. <script type="text/javascript">
  36. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  37. </script>
  38. <div id="navrow1" class="tabs">
  39. <ul class="tablist">
  40. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  41. <li><a href="annotated.html"><span>Classes</span></a></li>
  42. <li class="current"><a href="files.html"><span>Files</span></a></li>
  43. <li>
  44. <div id="MSearchBox" class="MSearchBoxInactive">
  45. <span class="left">
  46. <img id="MSearchSelect" src="search/mag_sel.png"
  47. onmouseover="return searchBox.OnSearchSelectShow()"
  48. onmouseout="return searchBox.OnSearchSelectHide()"
  49. alt=""/>
  50. <input type="text" id="MSearchField" value="Search" accesskey="S"
  51. onfocus="searchBox.OnSearchFieldFocus(true)"
  52. onblur="searchBox.OnSearchFieldFocus(false)"
  53. onkeyup="searchBox.OnSearchFieldChange(event)"/>
  54. </span><span class="right">
  55. <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
  56. </span>
  57. </div>
  58. </li>
  59. </ul>
  60. </div>
  61. <div id="navrow2" class="tabs2">
  62. <ul class="tablist">
  63. <li><a href="files.html"><span>File&#160;List</span></a></li>
  64. <li><a href="globals.html"><span>File&#160;Members</span></a></li>
  65. </ul>
  66. </div>
  67. <!-- window showing the filter options -->
  68. <div id="MSearchSelectWindow"
  69. onmouseover="return searchBox.OnSearchSelectShow()"
  70. onmouseout="return searchBox.OnSearchSelectHide()"
  71. onkeydown="return searchBox.OnSearchSelectKey(event)">
  72. </div>
  73. <!-- iframe showing the search results (closed by default) -->
  74. <div id="MSearchResultsWindow">
  75. <iframe src="javascript:void(0)" frameborder="0"
  76. name="MSearchResults" id="MSearchResults">
  77. </iframe>
  78. </div>
  79. </div><!-- top -->
  80. <div class="header">
  81. <div class="summary">
  82. <a href="#func-members">Functions</a> </div>
  83. <div class="headertitle">
  84. <div class="title">movie.h File Reference</div> </div>
  85. </div><!--header-->
  86. <div class="contents">
  87. <div class="textblock"><code>#include &lt;string&gt;</code><br />
  88. <code>#include &lt;QDebug&gt;</code><br />
  89. <code>#include &quot;filemanip.h&quot;</code><br />
  90. <code>#include &lt;QString&gt;</code><br />
  91. <code>#include &lt;QStringList&gt;</code><br />
  92. <code>#include &lt;iostream&gt;</code><br />
  93. </div>
  94. <p><a href="movie_8h_source.html">Go to the source code of this file.</a></p>
  95. <table class="memberdecls">
  96. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
  97. Functions</h2></td></tr>
  98. <tr class="memitem:aa2ca3be9f1d904e9f177faa425745236"><td class="memItemLeft" align="right" valign="top">string&#160;</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> &amp;)</td></tr>
  99. <tr class="memdesc:aa2ca3be9f1d904e9f177faa425745236"><td class="mdescLeft">&#160;</td><td class="mdescRight">Finds the information of a movie given its name. <a href="#aa2ca3be9f1d904e9f177faa425745236">More...</a><br /></td></tr>
  100. <tr class="separator:aa2ca3be9f1d904e9f177faa425745236"><td class="memSeparator" colspan="2">&#160;</td></tr>
  101. <tr class="memitem:aebd1da153f25f87661ac630b47737097"><td class="memItemLeft" align="right" valign="top">string&#160;</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> &amp;)</td></tr>
  102. <tr class="memdesc:aebd1da153f25f87661ac630b47737097"><td class="mdescLeft">&#160;</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>
  103. <tr class="separator:aebd1da153f25f87661ac630b47737097"><td class="memSeparator" colspan="2">&#160;</td></tr>
  104. <tr class="memitem:a39efa4469877528f52e365bba5d35c30"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8h.html#a39efa4469877528f52e365bba5d35c30">showMovies</a> (<a class="el" href="classfilemanip.html">filemanip</a> &amp;, int=1, int=10)</td></tr>
  105. <tr class="memdesc:a39efa4469877528f52e365bba5d35c30"><td class="mdescLeft">&#160;</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>
  106. <tr class="separator:a39efa4469877528f52e365bba5d35c30"><td class="memSeparator" colspan="2">&#160;</td></tr>
  107. <tr class="memitem:a65da80af0fbc68d3cb7de763d2c944ea"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8h.html#a65da80af0fbc68d3cb7de763d2c944ea">showMovies</a> (<a class="el" href="classfilemanip.html">filemanip</a> &amp;, string)</td></tr>
  108. <tr class="memdesc:a65da80af0fbc68d3cb7de763d2c944ea"><td class="mdescLeft">&#160;</td><td class="mdescRight">Display the information of the movies whose name contains a given keyword. <a href="#a65da80af0fbc68d3cb7de763d2c944ea">More...</a><br /></td></tr>
  109. <tr class="separator:a65da80af0fbc68d3cb7de763d2c944ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
  110. <tr class="memitem:af71e2fccff041af5f808e210a9cbb06f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8h.html#af71e2fccff041af5f808e210a9cbb06f">showMovie</a> (string)</td></tr>
  111. <tr class="memdesc:af71e2fccff041af5f808e210a9cbb06f"><td class="mdescLeft">&#160;</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>
  112. <tr class="separator:af71e2fccff041af5f808e210a9cbb06f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  113. <tr class="memitem:a5b13bb4e2035100dcf27abad21a2e862"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8h.html#a5b13bb4e2035100dcf27abad21a2e862">getMovieName</a> (string)</td></tr>
  114. <tr class="memdesc:a5b13bb4e2035100dcf27abad21a2e862"><td class="mdescLeft">&#160;</td><td class="mdescRight">Given a movie line from the file returns the movie name. <a href="#a5b13bb4e2035100dcf27abad21a2e862">More...</a><br /></td></tr>
  115. <tr class="separator:a5b13bb4e2035100dcf27abad21a2e862"><td class="memSeparator" colspan="2">&#160;</td></tr>
  116. <tr class="memitem:af50291017de186a0a663e8418d65b7ef"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8h.html#af50291017de186a0a663e8418d65b7ef">getMovieRating</a> (string)</td></tr>
  117. <tr class="memdesc:af50291017de186a0a663e8418d65b7ef"><td class="mdescLeft">&#160;</td><td class="mdescRight">Given a movie line from the file returns the movie rating. <a href="#af50291017de186a0a663e8418d65b7ef">More...</a><br /></td></tr>
  118. <tr class="separator:af50291017de186a0a663e8418d65b7ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
  119. <tr class="memitem:ad378998f3ab769b47a1bbc4672496f45"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8h.html#ad378998f3ab769b47a1bbc4672496f45">getMovieYear</a> (string)</td></tr>
  120. <tr class="memdesc:ad378998f3ab769b47a1bbc4672496f45"><td class="mdescLeft">&#160;</td><td class="mdescRight">Given a movie line from the file returns the movie release year. <a href="#ad378998f3ab769b47a1bbc4672496f45">More...</a><br /></td></tr>
  121. <tr class="separator:ad378998f3ab769b47a1bbc4672496f45"><td class="memSeparator" colspan="2">&#160;</td></tr>
  122. <tr class="memitem:aaa2e1332e82b931cf45663e755cc2302"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8h.html#aaa2e1332e82b931cf45663e755cc2302">getMovieGenre</a> (string)</td></tr>
  123. <tr class="memdesc:aaa2e1332e82b931cf45663e755cc2302"><td class="mdescLeft">&#160;</td><td class="mdescRight">Given a movie line from the file returns the movie genre. <a href="#aaa2e1332e82b931cf45663e755cc2302">More...</a><br /></td></tr>
  124. <tr class="separator:aaa2e1332e82b931cf45663e755cc2302"><td class="memSeparator" colspan="2">&#160;</td></tr>
  125. <tr class="memitem:ac0080d980b2f73f9eaa089f8eddeba60"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8h.html#ac0080d980b2f73f9eaa089f8eddeba60">getMovieInfo</a> (string, string &amp;, string &amp;, string &amp;, string &amp;)</td></tr>
  126. <tr class="memdesc:ac0080d980b2f73f9eaa089f8eddeba60"><td class="mdescLeft">&#160;</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>
  127. <tr class="separator:ac0080d980b2f73f9eaa089f8eddeba60"><td class="memSeparator" colspan="2">&#160;</td></tr>
  128. <tr class="memitem:af2c27f6eccc9bc99e5b3fb5a543e3d20"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8h.html#af2c27f6eccc9bc99e5b3fb5a543e3d20">getMovieStudio</a> (string)</td></tr>
  129. <tr class="memdesc:af2c27f6eccc9bc99e5b3fb5a543e3d20"><td class="mdescLeft">&#160;</td><td class="mdescRight">Given a movie line from the file returns the movie studio. Answer to (Exercise 3, question 1) <a href="#af2c27f6eccc9bc99e5b3fb5a543e3d20">More...</a><br /></td></tr>
  130. <tr class="separator:af2c27f6eccc9bc99e5b3fb5a543e3d20"><td class="memSeparator" colspan="2">&#160;</td></tr>
  131. <tr class="memitem:a41d3c7f88313d320640b5fbca273b757"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8h.html#a41d3c7f88313d320640b5fbca273b757">getMovieInfo</a> (string, string &amp;, string &amp;, string &amp;, string &amp;, string &amp;)</td></tr>
  132. <tr class="memdesc:a41d3c7f88313d320640b5fbca273b757"><td class="mdescLeft">&#160;</td><td class="mdescRight">Given a movie line from the file returns by reference the movie name, rating, year, genre, and studio. Answer to (Exercise 3, question 2) <a href="#a41d3c7f88313d320640b5fbca273b757">More...</a><br /></td></tr>
  133. <tr class="separator:a41d3c7f88313d320640b5fbca273b757"><td class="memSeparator" colspan="2">&#160;</td></tr>
  134. <tr class="memitem:abee243a60adc5d86608a02572cc98e5e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8h.html#abee243a60adc5d86608a02572cc98e5e">showMovieInLine</a> (string)</td></tr>
  135. <tr class="memdesc:abee243a60adc5d86608a02572cc98e5e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Display the movie information of a | separated line with movie info. The info is displayed in one line identified by its fields. Answer to (Exercise 3, question 3) <a href="#abee243a60adc5d86608a02572cc98e5e">More...</a><br /></td></tr>
  136. <tr class="separator:abee243a60adc5d86608a02572cc98e5e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  137. <tr class="memitem:a88d10eeb7ba4c05fde974ef8602af4fe"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8h.html#a88d10eeb7ba4c05fde974ef8602af4fe">showMoviesInLine</a> (<a class="el" href="classfilemanip.html">filemanip</a> &amp;, int=1, int=10)</td></tr>
  138. <tr class="memdesc:a88d10eeb7ba4c05fde974ef8602af4fe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Display the information of the movies in a file from line start to line end. The information is displayed in one line. Answer to (Exercise 3, question 4) <a href="#a88d10eeb7ba4c05fde974ef8602af4fe">More...</a><br /></td></tr>
  139. <tr class="separator:a88d10eeb7ba4c05fde974ef8602af4fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
  140. </table>
  141. <h2 class="groupheader">Function Documentation</h2>
  142. <a class="anchor" id="aa2ca3be9f1d904e9f177faa425745236"></a>
  143. <div class="memitem">
  144. <div class="memproto">
  145. <table class="memname">
  146. <tr>
  147. <td class="memname">string getMovieByName </td>
  148. <td>(</td>
  149. <td class="paramtype">string&#160;</td>
  150. <td class="paramname"><em>moviename</em>, </td>
  151. </tr>
  152. <tr>
  153. <td class="paramkey"></td>
  154. <td></td>
  155. <td class="paramtype"><a class="el" href="classfilemanip.html">filemanip</a> &amp;&#160;</td>
  156. <td class="paramname"><em>file</em>&#160;</td>
  157. </tr>
  158. <tr>
  159. <td></td>
  160. <td>)</td>
  161. <td></td><td></td>
  162. </tr>
  163. </table>
  164. </div><div class="memdoc">
  165. <p>Finds the information of a movie given its name. </p>
  166. <dl class="params"><dt>Parameters</dt><dd>
  167. <table class="params">
  168. <tr><td class="paramname">moviename</td><td>The name of the movie </td></tr>
  169. <tr><td class="paramname">file</td><td>A file pointer </td></tr>
  170. </table>
  171. </dd>
  172. </dl>
  173. <dl class="section return"><dt>Returns</dt><dd>One line with the information of the movie separated by | (pipes) </dd></dl>
  174. </div>
  175. </div>
  176. <a class="anchor" id="aebd1da153f25f87661ac630b47737097"></a>
  177. <div class="memitem">
  178. <div class="memproto">
  179. <table class="memname">
  180. <tr>
  181. <td class="memname">string getMovieByPosition </td>
  182. <td>(</td>
  183. <td class="paramtype">int&#160;</td>
  184. <td class="paramname"><em>position</em>, </td>
  185. </tr>
  186. <tr>
  187. <td class="paramkey"></td>
  188. <td></td>
  189. <td class="paramtype"><a class="el" href="classfilemanip.html">filemanip</a> &amp;&#160;</td>
  190. <td class="paramname"><em>file</em>&#160;</td>
  191. </tr>
  192. <tr>
  193. <td></td>
  194. <td>)</td>
  195. <td></td><td></td>
  196. </tr>
  197. </table>
  198. </div><div class="memdoc">
  199. <p>Finds a movie in position position of a file and returns the name of the movie. </p>
  200. <dl class="params"><dt>Parameters</dt><dd>
  201. <table class="params">
  202. <tr><td class="paramname">position</td><td>Position of the movie in the file </td></tr>
  203. <tr><td class="paramname">file</td><td>A file pointer </td></tr>
  204. </table>
  205. </dd>
  206. </dl>
  207. <dl class="section return"><dt>Returns</dt><dd>The name of the movie </dd></dl>
  208. </div>
  209. </div>
  210. <a class="anchor" id="aaa2e1332e82b931cf45663e755cc2302"></a>
  211. <div class="memitem">
  212. <div class="memproto">
  213. <table class="memname">
  214. <tr>
  215. <td class="memname">string getMovieGenre </td>
  216. <td>(</td>
  217. <td class="paramtype">string&#160;</td>
  218. <td class="paramname"><em>movieinfo</em></td><td>)</td>
  219. <td></td>
  220. </tr>
  221. </table>
  222. </div><div class="memdoc">
  223. <p>Given a movie line from the file returns the movie genre. </p>
  224. <dl class="params"><dt>Parameters</dt><dd>
  225. <table class="params">
  226. <tr><td class="paramname">movieinfo</td><td>The information of the movie in one line separated by | </td></tr>
  227. </table>
  228. </dd>
  229. </dl>
  230. <dl class="section return"><dt>Returns</dt><dd>The movie genre. </dd></dl>
  231. </div>
  232. </div>
  233. <a class="anchor" id="ac0080d980b2f73f9eaa089f8eddeba60"></a>
  234. <div class="memitem">
  235. <div class="memproto">
  236. <table class="memname">
  237. <tr>
  238. <td class="memname">void getMovieInfo </td>
  239. <td>(</td>
  240. <td class="paramtype">string&#160;</td>
  241. <td class="paramname"><em>movieinfo</em>, </td>
  242. </tr>
  243. <tr>
  244. <td class="paramkey"></td>
  245. <td></td>
  246. <td class="paramtype">string &amp;&#160;</td>
  247. <td class="paramname"><em>name</em>, </td>
  248. </tr>
  249. <tr>
  250. <td class="paramkey"></td>
  251. <td></td>
  252. <td class="paramtype">string &amp;&#160;</td>
  253. <td class="paramname"><em>rating</em>, </td>
  254. </tr>
  255. <tr>
  256. <td class="paramkey"></td>
  257. <td></td>
  258. <td class="paramtype">string &amp;&#160;</td>
  259. <td class="paramname"><em>year</em>, </td>
  260. </tr>
  261. <tr>
  262. <td class="paramkey"></td>
  263. <td></td>
  264. <td class="paramtype">string &amp;&#160;</td>
  265. <td class="paramname"><em>genre</em>&#160;</td>
  266. </tr>
  267. <tr>
  268. <td></td>
  269. <td>)</td>
  270. <td></td><td></td>
  271. </tr>
  272. </table>
  273. </div><div class="memdoc">
  274. <p>Given a movie line from the file returns by reference the movie name, rating, year, and genre. </p>
  275. <dl class="params"><dt>Parameters</dt><dd>
  276. <table class="params">
  277. <tr><td class="paramname">movieinfo</td><td>The information of the movie in one line separated by | </td></tr>
  278. </table>
  279. </dd>
  280. </dl>
  281. </div>
  282. </div>
  283. <a class="anchor" id="a41d3c7f88313d320640b5fbca273b757"></a>
  284. <div class="memitem">
  285. <div class="memproto">
  286. <table class="memname">
  287. <tr>
  288. <td class="memname">void getMovieInfo </td>
  289. <td>(</td>
  290. <td class="paramtype">string&#160;</td>
  291. <td class="paramname"><em>movieinfo</em>, </td>
  292. </tr>
  293. <tr>
  294. <td class="paramkey"></td>
  295. <td></td>
  296. <td class="paramtype">string &amp;&#160;</td>
  297. <td class="paramname"><em>name</em>, </td>
  298. </tr>
  299. <tr>
  300. <td class="paramkey"></td>
  301. <td></td>
  302. <td class="paramtype">string &amp;&#160;</td>
  303. <td class="paramname"><em>rating</em>, </td>
  304. </tr>
  305. <tr>
  306. <td class="paramkey"></td>
  307. <td></td>
  308. <td class="paramtype">string &amp;&#160;</td>
  309. <td class="paramname"><em>year</em>, </td>
  310. </tr>
  311. <tr>
  312. <td class="paramkey"></td>
  313. <td></td>
  314. <td class="paramtype">string &amp;&#160;</td>
  315. <td class="paramname"><em>genre</em>, </td>
  316. </tr>
  317. <tr>
  318. <td class="paramkey"></td>
  319. <td></td>
  320. <td class="paramtype">string &amp;&#160;</td>
  321. <td class="paramname"><em>studio</em>&#160;</td>
  322. </tr>
  323. <tr>
  324. <td></td>
  325. <td>)</td>
  326. <td></td><td></td>
  327. </tr>
  328. </table>
  329. </div><div class="memdoc">
  330. <p>Given a movie line from the file returns by reference the movie name, rating, year, genre, and studio. Answer to (Exercise 3, question 2) </p>
  331. <dl class="params"><dt>Parameters</dt><dd>
  332. <table class="params">
  333. <tr><td class="paramname">movieinfo</td><td>The information of the movie in one line separated by | </td></tr>
  334. </table>
  335. </dd>
  336. </dl>
  337. </div>
  338. </div>
  339. <a class="anchor" id="a5b13bb4e2035100dcf27abad21a2e862"></a>
  340. <div class="memitem">
  341. <div class="memproto">
  342. <table class="memname">
  343. <tr>
  344. <td class="memname">string getMovieName </td>
  345. <td>(</td>
  346. <td class="paramtype">string&#160;</td>
  347. <td class="paramname"><em>movieinfo</em></td><td>)</td>
  348. <td></td>
  349. </tr>
  350. </table>
  351. </div><div class="memdoc">
  352. <p>Given a movie line from the file returns the movie name. </p>
  353. <dl class="params"><dt>Parameters</dt><dd>
  354. <table class="params">
  355. <tr><td class="paramname">movieinfo</td><td>The information of the movie in one line separated by | </td></tr>
  356. </table>
  357. </dd>
  358. </dl>
  359. <dl class="section return"><dt>Returns</dt><dd>Movie name </dd></dl>
  360. </div>
  361. </div>
  362. <a class="anchor" id="af50291017de186a0a663e8418d65b7ef"></a>
  363. <div class="memitem">
  364. <div class="memproto">
  365. <table class="memname">
  366. <tr>
  367. <td class="memname">string getMovieRating </td>
  368. <td>(</td>
  369. <td class="paramtype">string&#160;</td>
  370. <td class="paramname"><em>movieinfo</em></td><td>)</td>
  371. <td></td>
  372. </tr>
  373. </table>
  374. </div><div class="memdoc">
  375. <p>Given a movie line from the file returns the movie rating. </p>
  376. <dl class="params"><dt>Parameters</dt><dd>
  377. <table class="params">
  378. <tr><td class="paramname">movieinfo</td><td>The information of the movie in one line separated by | </td></tr>
  379. </table>
  380. </dd>
  381. </dl>
  382. <dl class="section return"><dt>Returns</dt><dd>The movie rating </dd></dl>
  383. </div>
  384. </div>
  385. <a class="anchor" id="af2c27f6eccc9bc99e5b3fb5a543e3d20"></a>
  386. <div class="memitem">
  387. <div class="memproto">
  388. <table class="memname">
  389. <tr>
  390. <td class="memname">string getMovieStudio </td>
  391. <td>(</td>
  392. <td class="paramtype">string&#160;</td>
  393. <td class="paramname"><em>movieinfo</em></td><td>)</td>
  394. <td></td>
  395. </tr>
  396. </table>
  397. </div><div class="memdoc">
  398. <p>Given a movie line from the file returns the movie studio. Answer to (Exercise 3, question 1) </p>
  399. <dl class="params"><dt>Parameters</dt><dd>
  400. <table class="params">
  401. <tr><td class="paramname">movieinfo</td><td>The information of the movie in one line separated by | </td></tr>
  402. </table>
  403. </dd>
  404. </dl>
  405. <dl class="section return"><dt>Returns</dt><dd>The movie studio. </dd></dl>
  406. </div>
  407. </div>
  408. <a class="anchor" id="ad378998f3ab769b47a1bbc4672496f45"></a>
  409. <div class="memitem">
  410. <div class="memproto">
  411. <table class="memname">
  412. <tr>
  413. <td class="memname">string getMovieYear </td>
  414. <td>(</td>
  415. <td class="paramtype">string&#160;</td>
  416. <td class="paramname"><em>movieinfo</em></td><td>)</td>
  417. <td></td>
  418. </tr>
  419. </table>
  420. </div><div class="memdoc">
  421. <p>Given a movie line from the file returns the movie release year. </p>
  422. <dl class="params"><dt>Parameters</dt><dd>
  423. <table class="params">
  424. <tr><td class="paramname">movieinfo</td><td>The information of the movie in one line separated by | </td></tr>
  425. </table>
  426. </dd>
  427. </dl>
  428. <dl class="section return"><dt>Returns</dt><dd>The movie release year. </dd></dl>
  429. </div>
  430. </div>
  431. <a class="anchor" id="af71e2fccff041af5f808e210a9cbb06f"></a>
  432. <div class="memitem">
  433. <div class="memproto">
  434. <table class="memname">
  435. <tr>
  436. <td class="memname">void showMovie </td>
  437. <td>(</td>
  438. <td class="paramtype">string&#160;</td>
  439. <td class="paramname"><em>movieinfo</em></td><td>)</td>
  440. <td></td>
  441. </tr>
  442. </table>
  443. </div><div class="memdoc">
  444. <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>
  445. <dl class="params"><dt>Parameters</dt><dd>
  446. <table class="params">
  447. <tr><td class="paramname">movieinfo</td><td>The information of the movie in one line separated by | </td></tr>
  448. </table>
  449. </dd>
  450. </dl>
  451. </div>
  452. </div>
  453. <a class="anchor" id="abee243a60adc5d86608a02572cc98e5e"></a>
  454. <div class="memitem">
  455. <div class="memproto">
  456. <table class="memname">
  457. <tr>
  458. <td class="memname">void showMovieInLine </td>
  459. <td>(</td>
  460. <td class="paramtype">string&#160;</td>
  461. <td class="paramname"><em>movieinfo</em></td><td>)</td>
  462. <td></td>
  463. </tr>
  464. </table>
  465. </div><div class="memdoc">
  466. <p>Display the movie information of a | separated line with movie info. The info is displayed in one line identified by its fields. Answer to (Exercise 3, question 3) </p>
  467. <dl class="params"><dt>Parameters</dt><dd>
  468. <table class="params">
  469. <tr><td class="paramname">movieinfo</td><td>The information of the movie in one line separated by | </td></tr>
  470. </table>
  471. </dd>
  472. </dl>
  473. </div>
  474. </div>
  475. <a class="anchor" id="a39efa4469877528f52e365bba5d35c30"></a>
  476. <div class="memitem">
  477. <div class="memproto">
  478. <table class="memname">
  479. <tr>
  480. <td class="memname">void showMovies </td>
  481. <td>(</td>
  482. <td class="paramtype"><a class="el" href="classfilemanip.html">filemanip</a> &amp;&#160;</td>
  483. <td class="paramname"><em>file</em>, </td>
  484. </tr>
  485. <tr>
  486. <td class="paramkey"></td>
  487. <td></td>
  488. <td class="paramtype">int&#160;</td>
  489. <td class="paramname"><em>start</em>, </td>
  490. </tr>
  491. <tr>
  492. <td class="paramkey"></td>
  493. <td></td>
  494. <td class="paramtype">int&#160;</td>
  495. <td class="paramname"><em>end</em>&#160;</td>
  496. </tr>
  497. <tr>
  498. <td></td>
  499. <td>)</td>
  500. <td></td><td></td>
  501. </tr>
  502. </table>
  503. </div><div class="memdoc">
  504. <p>Display the information of the movies in a file from line start to line end. </p>
  505. <dl class="params"><dt>Parameters</dt><dd>
  506. <table class="params">
  507. <tr><td class="paramname">file</td><td>Pointer to a file. </td></tr>
  508. <tr><td class="paramname">start</td><td>Line in the file to start showing movie info. </td></tr>
  509. <tr><td class="paramname">end</td><td>Line in the file to stop showing movie information. </td></tr>
  510. </table>
  511. </dd>
  512. </dl>
  513. </div>
  514. </div>
  515. <a class="anchor" id="a65da80af0fbc68d3cb7de763d2c944ea"></a>
  516. <div class="memitem">
  517. <div class="memproto">
  518. <table class="memname">
  519. <tr>
  520. <td class="memname">void showMovies </td>
  521. <td>(</td>
  522. <td class="paramtype"><a class="el" href="classfilemanip.html">filemanip</a> &amp;&#160;</td>
  523. <td class="paramname"><em>file</em>, </td>
  524. </tr>
  525. <tr>
  526. <td class="paramkey"></td>
  527. <td></td>
  528. <td class="paramtype">string&#160;</td>
  529. <td class="paramname"><em>keyword</em>&#160;</td>
  530. </tr>
  531. <tr>
  532. <td></td>
  533. <td>)</td>
  534. <td></td><td></td>
  535. </tr>
  536. </table>
  537. </div><div class="memdoc">
  538. <p>Display the information of the movies whose name contains a given keyword. </p>
  539. <dl class="params"><dt>Parameters</dt><dd>
  540. <table class="params">
  541. <tr><td class="paramname">file</td><td>Pointer to a file. </td></tr>
  542. <tr><td class="paramname">keyword</td><td>Keyword to search in the name of the movies. </td></tr>
  543. </table>
  544. </dd>
  545. </dl>
  546. </div>
  547. </div>
  548. <a class="anchor" id="a88d10eeb7ba4c05fde974ef8602af4fe"></a>
  549. <div class="memitem">
  550. <div class="memproto">
  551. <table class="memname">
  552. <tr>
  553. <td class="memname">void showMoviesInLine </td>
  554. <td>(</td>
  555. <td class="paramtype"><a class="el" href="classfilemanip.html">filemanip</a> &amp;&#160;</td>
  556. <td class="paramname"><em>file</em>, </td>
  557. </tr>
  558. <tr>
  559. <td class="paramkey"></td>
  560. <td></td>
  561. <td class="paramtype">int&#160;</td>
  562. <td class="paramname"><em>start</em>, </td>
  563. </tr>
  564. <tr>
  565. <td class="paramkey"></td>
  566. <td></td>
  567. <td class="paramtype">int&#160;</td>
  568. <td class="paramname"><em>end</em>&#160;</td>
  569. </tr>
  570. <tr>
  571. <td></td>
  572. <td>)</td>
  573. <td></td><td></td>
  574. </tr>
  575. </table>
  576. </div><div class="memdoc">
  577. <p>Display the information of the movies in a file from line start to line end. The information is displayed in one line. Answer to (Exercise 3, question 4) </p>
  578. <dl class="params"><dt>Parameters</dt><dd>
  579. <table class="params">
  580. <tr><td class="paramname">file</td><td>Pointer to a file. </td></tr>
  581. <tr><td class="paramname">start</td><td>Line in the file to start showing movie info. </td></tr>
  582. <tr><td class="paramname">end</td><td>Line in the file to stop showing movie information. </td></tr>
  583. </table>
  584. </dd>
  585. </dl>
  586. </div>
  587. </div>
  588. </div><!-- contents -->
  589. <!-- start footer part -->
  590. <hr class="footer"/><address class="footer"><small>
  591. Generated on Mon Jun 8 2015 15:29:47 for My Project by &#160;<a href="http://www.doxygen.org/index.html">
  592. <img class="footer" src="doxygen.png" alt="doxygen"/>
  593. </a> 1.8.9.1
  594. </small></address>
  595. </body>
  596. </html>