暂无描述

movie_8cpp.html 29KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619
  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.cpp 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.cpp File Reference</div> </div>
  85. </div><!--header-->
  86. <div class="contents">
  87. <div class="textblock"><code>#include &quot;<a class="el" href="movie_8h_source.html">movie.h</a>&quot;</code><br />
  88. </div><table class="memberdecls">
  89. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
  90. Functions</h2></td></tr>
  91. <tr class="memitem:a5cd9879ec2e8c19fb7bea1b7eff92306"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8cpp.html#a5cd9879ec2e8c19fb7bea1b7eff92306">getMovieByPosition</a> (int position, <a class="el" href="classfilemanip.html">filemanip</a> &amp;file)</td></tr>
  92. <tr class="memdesc:a5cd9879ec2e8c19fb7bea1b7eff92306"><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="#a5cd9879ec2e8c19fb7bea1b7eff92306">More...</a><br /></td></tr>
  93. <tr class="separator:a5cd9879ec2e8c19fb7bea1b7eff92306"><td class="memSeparator" colspan="2">&#160;</td></tr>
  94. <tr class="memitem:a14872b961b612dd2ed0e848e205432ab"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8cpp.html#a14872b961b612dd2ed0e848e205432ab">getMovieByName</a> (string moviename, <a class="el" href="classfilemanip.html">filemanip</a> &amp;file)</td></tr>
  95. <tr class="memdesc:a14872b961b612dd2ed0e848e205432ab"><td class="mdescLeft">&#160;</td><td class="mdescRight">Finds the information of a movie given its name. <a href="#a14872b961b612dd2ed0e848e205432ab">More...</a><br /></td></tr>
  96. <tr class="separator:a14872b961b612dd2ed0e848e205432ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
  97. <tr class="memitem:ad7046e791da7846c172e7277aaf94d14"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8cpp.html#ad7046e791da7846c172e7277aaf94d14">showMovie</a> (string movieinfo)</td></tr>
  98. <tr class="memdesc:ad7046e791da7846c172e7277aaf94d14"><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="#ad7046e791da7846c172e7277aaf94d14">More...</a><br /></td></tr>
  99. <tr class="separator:ad7046e791da7846c172e7277aaf94d14"><td class="memSeparator" colspan="2">&#160;</td></tr>
  100. <tr class="memitem:a1ac8811db306ce6205ddc638ce02963e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8cpp.html#a1ac8811db306ce6205ddc638ce02963e">showMovies</a> (<a class="el" href="classfilemanip.html">filemanip</a> &amp;file, int start, int end)</td></tr>
  101. <tr class="memdesc:a1ac8811db306ce6205ddc638ce02963e"><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="#a1ac8811db306ce6205ddc638ce02963e">More...</a><br /></td></tr>
  102. <tr class="separator:a1ac8811db306ce6205ddc638ce02963e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  103. <tr class="memitem:a2200ec80d18eede5241b99afcffb509a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8cpp.html#a2200ec80d18eede5241b99afcffb509a">showMovies</a> (<a class="el" href="classfilemanip.html">filemanip</a> &amp;file, string keyword)</td></tr>
  104. <tr class="memdesc:a2200ec80d18eede5241b99afcffb509a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Display the information of the movies whose name contains a given keyword. <a href="#a2200ec80d18eede5241b99afcffb509a">More...</a><br /></td></tr>
  105. <tr class="separator:a2200ec80d18eede5241b99afcffb509a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  106. <tr class="memitem:aa89f412c80723cef362fdb6ac54c3a46"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8cpp.html#aa89f412c80723cef362fdb6ac54c3a46">getMovieName</a> (string movieinfo)</td></tr>
  107. <tr class="memdesc:aa89f412c80723cef362fdb6ac54c3a46"><td class="mdescLeft">&#160;</td><td class="mdescRight">Given a movie line from the file returns the movie name. <a href="#aa89f412c80723cef362fdb6ac54c3a46">More...</a><br /></td></tr>
  108. <tr class="separator:aa89f412c80723cef362fdb6ac54c3a46"><td class="memSeparator" colspan="2">&#160;</td></tr>
  109. <tr class="memitem:a4d7282011b6c01bf329c55be741e491b"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8cpp.html#a4d7282011b6c01bf329c55be741e491b">getMovieRating</a> (string movieinfo)</td></tr>
  110. <tr class="memdesc:a4d7282011b6c01bf329c55be741e491b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Given a movie line from the file returns the movie rating. <a href="#a4d7282011b6c01bf329c55be741e491b">More...</a><br /></td></tr>
  111. <tr class="separator:a4d7282011b6c01bf329c55be741e491b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  112. <tr class="memitem:a658aabb68db11d7b29c54c777bd68207"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8cpp.html#a658aabb68db11d7b29c54c777bd68207">getMovieYear</a> (string movieinfo)</td></tr>
  113. <tr class="memdesc:a658aabb68db11d7b29c54c777bd68207"><td class="mdescLeft">&#160;</td><td class="mdescRight">Given a movie line from the file returns the movie release year. <a href="#a658aabb68db11d7b29c54c777bd68207">More...</a><br /></td></tr>
  114. <tr class="separator:a658aabb68db11d7b29c54c777bd68207"><td class="memSeparator" colspan="2">&#160;</td></tr>
  115. <tr class="memitem:a587b63fb2f1c6ff6aa0bbfd12ebbdb46"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8cpp.html#a587b63fb2f1c6ff6aa0bbfd12ebbdb46">getMovieGenre</a> (string movieinfo)</td></tr>
  116. <tr class="memdesc:a587b63fb2f1c6ff6aa0bbfd12ebbdb46"><td class="mdescLeft">&#160;</td><td class="mdescRight">Given a movie line from the file returns the movie genre. <a href="#a587b63fb2f1c6ff6aa0bbfd12ebbdb46">More...</a><br /></td></tr>
  117. <tr class="separator:a587b63fb2f1c6ff6aa0bbfd12ebbdb46"><td class="memSeparator" colspan="2">&#160;</td></tr>
  118. <tr class="memitem:a9057c8190a50e3b94cb358ee7f9f7efb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8cpp.html#a9057c8190a50e3b94cb358ee7f9f7efb">getMovieInfo</a> (string movieinfo, string &amp;name, string &amp;rating, string &amp;year, string &amp;genre)</td></tr>
  119. <tr class="memdesc:a9057c8190a50e3b94cb358ee7f9f7efb"><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="#a9057c8190a50e3b94cb358ee7f9f7efb">More...</a><br /></td></tr>
  120. <tr class="separator:a9057c8190a50e3b94cb358ee7f9f7efb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  121. <tr class="memitem:a2c66ce60f7a568afd7a8c2394700e3b1"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8cpp.html#a2c66ce60f7a568afd7a8c2394700e3b1">getMovieStudio</a> (string movieinfo)</td></tr>
  122. <tr class="memdesc:a2c66ce60f7a568afd7a8c2394700e3b1"><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="#a2c66ce60f7a568afd7a8c2394700e3b1">More...</a><br /></td></tr>
  123. <tr class="separator:a2c66ce60f7a568afd7a8c2394700e3b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  124. <tr class="memitem:a724308b84548b6b3f247022f07720dc5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8cpp.html#a724308b84548b6b3f247022f07720dc5">getMovieInfo</a> (string movieinfo, string &amp;name, string &amp;rating, string &amp;year, string &amp;genre, string &amp;studio)</td></tr>
  125. <tr class="memdesc:a724308b84548b6b3f247022f07720dc5"><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="#a724308b84548b6b3f247022f07720dc5">More...</a><br /></td></tr>
  126. <tr class="separator:a724308b84548b6b3f247022f07720dc5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  127. <tr class="memitem:ae2bfae6f7267aa64eaa2b9a1900879e3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8cpp.html#ae2bfae6f7267aa64eaa2b9a1900879e3">showMovieInLine</a> (string movieinfo)</td></tr>
  128. <tr class="memdesc:ae2bfae6f7267aa64eaa2b9a1900879e3"><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="#ae2bfae6f7267aa64eaa2b9a1900879e3">More...</a><br /></td></tr>
  129. <tr class="separator:ae2bfae6f7267aa64eaa2b9a1900879e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
  130. <tr class="memitem:ac3694a5a7bee33f0085a41fd784a366b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8cpp.html#ac3694a5a7bee33f0085a41fd784a366b">showMoviesInLine</a> (<a class="el" href="classfilemanip.html">filemanip</a> &amp;file, int start, int end)</td></tr>
  131. <tr class="memdesc:ac3694a5a7bee33f0085a41fd784a366b"><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="#ac3694a5a7bee33f0085a41fd784a366b">More...</a><br /></td></tr>
  132. <tr class="separator:ac3694a5a7bee33f0085a41fd784a366b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  133. </table>
  134. <h2 class="groupheader">Function Documentation</h2>
  135. <a class="anchor" id="a14872b961b612dd2ed0e848e205432ab"></a>
  136. <div class="memitem">
  137. <div class="memproto">
  138. <table class="memname">
  139. <tr>
  140. <td class="memname">string getMovieByName </td>
  141. <td>(</td>
  142. <td class="paramtype">string&#160;</td>
  143. <td class="paramname"><em>moviename</em>, </td>
  144. </tr>
  145. <tr>
  146. <td class="paramkey"></td>
  147. <td></td>
  148. <td class="paramtype"><a class="el" href="classfilemanip.html">filemanip</a> &amp;&#160;</td>
  149. <td class="paramname"><em>file</em>&#160;</td>
  150. </tr>
  151. <tr>
  152. <td></td>
  153. <td>)</td>
  154. <td></td><td></td>
  155. </tr>
  156. </table>
  157. </div><div class="memdoc">
  158. <p>Finds the information of a movie given its name. </p>
  159. <dl class="params"><dt>Parameters</dt><dd>
  160. <table class="params">
  161. <tr><td class="paramname">moviename</td><td>The name of the movie </td></tr>
  162. <tr><td class="paramname">file</td><td>A file pointer </td></tr>
  163. </table>
  164. </dd>
  165. </dl>
  166. <dl class="section return"><dt>Returns</dt><dd>One line with the information of the movie separated by | (pipes) </dd></dl>
  167. </div>
  168. </div>
  169. <a class="anchor" id="a5cd9879ec2e8c19fb7bea1b7eff92306"></a>
  170. <div class="memitem">
  171. <div class="memproto">
  172. <table class="memname">
  173. <tr>
  174. <td class="memname">string getMovieByPosition </td>
  175. <td>(</td>
  176. <td class="paramtype">int&#160;</td>
  177. <td class="paramname"><em>position</em>, </td>
  178. </tr>
  179. <tr>
  180. <td class="paramkey"></td>
  181. <td></td>
  182. <td class="paramtype"><a class="el" href="classfilemanip.html">filemanip</a> &amp;&#160;</td>
  183. <td class="paramname"><em>file</em>&#160;</td>
  184. </tr>
  185. <tr>
  186. <td></td>
  187. <td>)</td>
  188. <td></td><td></td>
  189. </tr>
  190. </table>
  191. </div><div class="memdoc">
  192. <p>Finds a movie in position position of a file and returns the name of the movie. </p>
  193. <dl class="params"><dt>Parameters</dt><dd>
  194. <table class="params">
  195. <tr><td class="paramname">position</td><td>Position of the movie in the file </td></tr>
  196. <tr><td class="paramname">file</td><td>A file pointer </td></tr>
  197. </table>
  198. </dd>
  199. </dl>
  200. <dl class="section return"><dt>Returns</dt><dd>The name of the movie </dd></dl>
  201. </div>
  202. </div>
  203. <a class="anchor" id="a587b63fb2f1c6ff6aa0bbfd12ebbdb46"></a>
  204. <div class="memitem">
  205. <div class="memproto">
  206. <table class="memname">
  207. <tr>
  208. <td class="memname">string getMovieGenre </td>
  209. <td>(</td>
  210. <td class="paramtype">string&#160;</td>
  211. <td class="paramname"><em>movieinfo</em></td><td>)</td>
  212. <td></td>
  213. </tr>
  214. </table>
  215. </div><div class="memdoc">
  216. <p>Given a movie line from the file returns the movie genre. </p>
  217. <dl class="params"><dt>Parameters</dt><dd>
  218. <table class="params">
  219. <tr><td class="paramname">movieinfo</td><td>The information of the movie in one line separated by | </td></tr>
  220. </table>
  221. </dd>
  222. </dl>
  223. <dl class="section return"><dt>Returns</dt><dd>The movie genre. </dd></dl>
  224. </div>
  225. </div>
  226. <a class="anchor" id="a9057c8190a50e3b94cb358ee7f9f7efb"></a>
  227. <div class="memitem">
  228. <div class="memproto">
  229. <table class="memname">
  230. <tr>
  231. <td class="memname">void getMovieInfo </td>
  232. <td>(</td>
  233. <td class="paramtype">string&#160;</td>
  234. <td class="paramname"><em>movieinfo</em>, </td>
  235. </tr>
  236. <tr>
  237. <td class="paramkey"></td>
  238. <td></td>
  239. <td class="paramtype">string &amp;&#160;</td>
  240. <td class="paramname"><em>name</em>, </td>
  241. </tr>
  242. <tr>
  243. <td class="paramkey"></td>
  244. <td></td>
  245. <td class="paramtype">string &amp;&#160;</td>
  246. <td class="paramname"><em>rating</em>, </td>
  247. </tr>
  248. <tr>
  249. <td class="paramkey"></td>
  250. <td></td>
  251. <td class="paramtype">string &amp;&#160;</td>
  252. <td class="paramname"><em>year</em>, </td>
  253. </tr>
  254. <tr>
  255. <td class="paramkey"></td>
  256. <td></td>
  257. <td class="paramtype">string &amp;&#160;</td>
  258. <td class="paramname"><em>genre</em>&#160;</td>
  259. </tr>
  260. <tr>
  261. <td></td>
  262. <td>)</td>
  263. <td></td><td></td>
  264. </tr>
  265. </table>
  266. </div><div class="memdoc">
  267. <p>Given a movie line from the file returns by reference the movie name, rating, year, and genre. </p>
  268. <dl class="params"><dt>Parameters</dt><dd>
  269. <table class="params">
  270. <tr><td class="paramname">movieinfo</td><td>The information of the movie in one line separated by | </td></tr>
  271. </table>
  272. </dd>
  273. </dl>
  274. </div>
  275. </div>
  276. <a class="anchor" id="a724308b84548b6b3f247022f07720dc5"></a>
  277. <div class="memitem">
  278. <div class="memproto">
  279. <table class="memname">
  280. <tr>
  281. <td class="memname">void getMovieInfo </td>
  282. <td>(</td>
  283. <td class="paramtype">string&#160;</td>
  284. <td class="paramname"><em>movieinfo</em>, </td>
  285. </tr>
  286. <tr>
  287. <td class="paramkey"></td>
  288. <td></td>
  289. <td class="paramtype">string &amp;&#160;</td>
  290. <td class="paramname"><em>name</em>, </td>
  291. </tr>
  292. <tr>
  293. <td class="paramkey"></td>
  294. <td></td>
  295. <td class="paramtype">string &amp;&#160;</td>
  296. <td class="paramname"><em>rating</em>, </td>
  297. </tr>
  298. <tr>
  299. <td class="paramkey"></td>
  300. <td></td>
  301. <td class="paramtype">string &amp;&#160;</td>
  302. <td class="paramname"><em>year</em>, </td>
  303. </tr>
  304. <tr>
  305. <td class="paramkey"></td>
  306. <td></td>
  307. <td class="paramtype">string &amp;&#160;</td>
  308. <td class="paramname"><em>genre</em>, </td>
  309. </tr>
  310. <tr>
  311. <td class="paramkey"></td>
  312. <td></td>
  313. <td class="paramtype">string &amp;&#160;</td>
  314. <td class="paramname"><em>studio</em>&#160;</td>
  315. </tr>
  316. <tr>
  317. <td></td>
  318. <td>)</td>
  319. <td></td><td></td>
  320. </tr>
  321. </table>
  322. </div><div class="memdoc">
  323. <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>
  324. <dl class="params"><dt>Parameters</dt><dd>
  325. <table class="params">
  326. <tr><td class="paramname">movieinfo</td><td>The information of the movie in one line separated by | </td></tr>
  327. </table>
  328. </dd>
  329. </dl>
  330. </div>
  331. </div>
  332. <a class="anchor" id="aa89f412c80723cef362fdb6ac54c3a46"></a>
  333. <div class="memitem">
  334. <div class="memproto">
  335. <table class="memname">
  336. <tr>
  337. <td class="memname">string getMovieName </td>
  338. <td>(</td>
  339. <td class="paramtype">string&#160;</td>
  340. <td class="paramname"><em>movieinfo</em></td><td>)</td>
  341. <td></td>
  342. </tr>
  343. </table>
  344. </div><div class="memdoc">
  345. <p>Given a movie line from the file returns the movie name. </p>
  346. <dl class="params"><dt>Parameters</dt><dd>
  347. <table class="params">
  348. <tr><td class="paramname">movieinfo</td><td>The information of the movie in one line separated by | </td></tr>
  349. </table>
  350. </dd>
  351. </dl>
  352. <dl class="section return"><dt>Returns</dt><dd>Movie name </dd></dl>
  353. </div>
  354. </div>
  355. <a class="anchor" id="a4d7282011b6c01bf329c55be741e491b"></a>
  356. <div class="memitem">
  357. <div class="memproto">
  358. <table class="memname">
  359. <tr>
  360. <td class="memname">string getMovieRating </td>
  361. <td>(</td>
  362. <td class="paramtype">string&#160;</td>
  363. <td class="paramname"><em>movieinfo</em></td><td>)</td>
  364. <td></td>
  365. </tr>
  366. </table>
  367. </div><div class="memdoc">
  368. <p>Given a movie line from the file returns the movie rating. </p>
  369. <dl class="params"><dt>Parameters</dt><dd>
  370. <table class="params">
  371. <tr><td class="paramname">movieinfo</td><td>The information of the movie in one line separated by | </td></tr>
  372. </table>
  373. </dd>
  374. </dl>
  375. <dl class="section return"><dt>Returns</dt><dd>The movie rating </dd></dl>
  376. </div>
  377. </div>
  378. <a class="anchor" id="a2c66ce60f7a568afd7a8c2394700e3b1"></a>
  379. <div class="memitem">
  380. <div class="memproto">
  381. <table class="memname">
  382. <tr>
  383. <td class="memname">string getMovieStudio </td>
  384. <td>(</td>
  385. <td class="paramtype">string&#160;</td>
  386. <td class="paramname"><em>movieinfo</em></td><td>)</td>
  387. <td></td>
  388. </tr>
  389. </table>
  390. </div><div class="memdoc">
  391. <p>Given a movie line from the file returns the movie studio. Answer to (Exercise 3, question 1) </p>
  392. <dl class="params"><dt>Parameters</dt><dd>
  393. <table class="params">
  394. <tr><td class="paramname">movieinfo</td><td>The information of the movie in one line separated by | </td></tr>
  395. </table>
  396. </dd>
  397. </dl>
  398. <dl class="section return"><dt>Returns</dt><dd>The movie studio. </dd></dl>
  399. </div>
  400. </div>
  401. <a class="anchor" id="a658aabb68db11d7b29c54c777bd68207"></a>
  402. <div class="memitem">
  403. <div class="memproto">
  404. <table class="memname">
  405. <tr>
  406. <td class="memname">string getMovieYear </td>
  407. <td>(</td>
  408. <td class="paramtype">string&#160;</td>
  409. <td class="paramname"><em>movieinfo</em></td><td>)</td>
  410. <td></td>
  411. </tr>
  412. </table>
  413. </div><div class="memdoc">
  414. <p>Given a movie line from the file returns the movie release year. </p>
  415. <dl class="params"><dt>Parameters</dt><dd>
  416. <table class="params">
  417. <tr><td class="paramname">movieinfo</td><td>The information of the movie in one line separated by | </td></tr>
  418. </table>
  419. </dd>
  420. </dl>
  421. <dl class="section return"><dt>Returns</dt><dd>The movie release year. </dd></dl>
  422. </div>
  423. </div>
  424. <a class="anchor" id="ad7046e791da7846c172e7277aaf94d14"></a>
  425. <div class="memitem">
  426. <div class="memproto">
  427. <table class="memname">
  428. <tr>
  429. <td class="memname">void showMovie </td>
  430. <td>(</td>
  431. <td class="paramtype">string&#160;</td>
  432. <td class="paramname"><em>movieinfo</em></td><td>)</td>
  433. <td></td>
  434. </tr>
  435. </table>
  436. </div><div class="memdoc">
  437. <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>
  438. <dl class="params"><dt>Parameters</dt><dd>
  439. <table class="params">
  440. <tr><td class="paramname">movieinfo</td><td>The information of the movie in one line separated by | </td></tr>
  441. </table>
  442. </dd>
  443. </dl>
  444. </div>
  445. </div>
  446. <a class="anchor" id="ae2bfae6f7267aa64eaa2b9a1900879e3"></a>
  447. <div class="memitem">
  448. <div class="memproto">
  449. <table class="memname">
  450. <tr>
  451. <td class="memname">void showMovieInLine </td>
  452. <td>(</td>
  453. <td class="paramtype">string&#160;</td>
  454. <td class="paramname"><em>movieinfo</em></td><td>)</td>
  455. <td></td>
  456. </tr>
  457. </table>
  458. </div><div class="memdoc">
  459. <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>
  460. <dl class="params"><dt>Parameters</dt><dd>
  461. <table class="params">
  462. <tr><td class="paramname">movieinfo</td><td>The information of the movie in one line separated by | </td></tr>
  463. </table>
  464. </dd>
  465. </dl>
  466. </div>
  467. </div>
  468. <a class="anchor" id="a1ac8811db306ce6205ddc638ce02963e"></a>
  469. <div class="memitem">
  470. <div class="memproto">
  471. <table class="memname">
  472. <tr>
  473. <td class="memname">void showMovies </td>
  474. <td>(</td>
  475. <td class="paramtype"><a class="el" href="classfilemanip.html">filemanip</a> &amp;&#160;</td>
  476. <td class="paramname"><em>file</em>, </td>
  477. </tr>
  478. <tr>
  479. <td class="paramkey"></td>
  480. <td></td>
  481. <td class="paramtype">int&#160;</td>
  482. <td class="paramname"><em>start</em>, </td>
  483. </tr>
  484. <tr>
  485. <td class="paramkey"></td>
  486. <td></td>
  487. <td class="paramtype">int&#160;</td>
  488. <td class="paramname"><em>end</em>&#160;</td>
  489. </tr>
  490. <tr>
  491. <td></td>
  492. <td>)</td>
  493. <td></td><td></td>
  494. </tr>
  495. </table>
  496. </div><div class="memdoc">
  497. <p>Display the information of the movies in a file from line start to line end. </p>
  498. <dl class="params"><dt>Parameters</dt><dd>
  499. <table class="params">
  500. <tr><td class="paramname">file</td><td>Pointer to a file. </td></tr>
  501. <tr><td class="paramname">start</td><td>Line in the file to start showing movie info. </td></tr>
  502. <tr><td class="paramname">end</td><td>Line in the file to stop showing movie information. </td></tr>
  503. </table>
  504. </dd>
  505. </dl>
  506. </div>
  507. </div>
  508. <a class="anchor" id="a2200ec80d18eede5241b99afcffb509a"></a>
  509. <div class="memitem">
  510. <div class="memproto">
  511. <table class="memname">
  512. <tr>
  513. <td class="memname">void showMovies </td>
  514. <td>(</td>
  515. <td class="paramtype"><a class="el" href="classfilemanip.html">filemanip</a> &amp;&#160;</td>
  516. <td class="paramname"><em>file</em>, </td>
  517. </tr>
  518. <tr>
  519. <td class="paramkey"></td>
  520. <td></td>
  521. <td class="paramtype">string&#160;</td>
  522. <td class="paramname"><em>keyword</em>&#160;</td>
  523. </tr>
  524. <tr>
  525. <td></td>
  526. <td>)</td>
  527. <td></td><td></td>
  528. </tr>
  529. </table>
  530. </div><div class="memdoc">
  531. <p>Display the information of the movies whose name contains a given keyword. </p>
  532. <dl class="params"><dt>Parameters</dt><dd>
  533. <table class="params">
  534. <tr><td class="paramname">file</td><td>Pointer to a file. </td></tr>
  535. <tr><td class="paramname">keyword</td><td>Keyword to search in the name of the movies. </td></tr>
  536. </table>
  537. </dd>
  538. </dl>
  539. </div>
  540. </div>
  541. <a class="anchor" id="ac3694a5a7bee33f0085a41fd784a366b"></a>
  542. <div class="memitem">
  543. <div class="memproto">
  544. <table class="memname">
  545. <tr>
  546. <td class="memname">void showMoviesInLine </td>
  547. <td>(</td>
  548. <td class="paramtype"><a class="el" href="classfilemanip.html">filemanip</a> &amp;&#160;</td>
  549. <td class="paramname"><em>file</em>, </td>
  550. </tr>
  551. <tr>
  552. <td class="paramkey"></td>
  553. <td></td>
  554. <td class="paramtype">int&#160;</td>
  555. <td class="paramname"><em>start</em>, </td>
  556. </tr>
  557. <tr>
  558. <td class="paramkey"></td>
  559. <td></td>
  560. <td class="paramtype">int&#160;</td>
  561. <td class="paramname"><em>end</em>&#160;</td>
  562. </tr>
  563. <tr>
  564. <td></td>
  565. <td>)</td>
  566. <td></td><td></td>
  567. </tr>
  568. </table>
  569. </div><div class="memdoc">
  570. <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>
  571. <dl class="params"><dt>Parameters</dt><dd>
  572. <table class="params">
  573. <tr><td class="paramname">file</td><td>Pointer to a file. </td></tr>
  574. <tr><td class="paramname">start</td><td>Line in the file to start showing movie info. </td></tr>
  575. <tr><td class="paramname">end</td><td>Line in the file to stop showing movie information. </td></tr>
  576. </table>
  577. </dd>
  578. </dl>
  579. </div>
  580. </div>
  581. </div><!-- contents -->
  582. <!-- start footer part -->
  583. <hr class="footer"/><address class="footer"><small>
  584. Generated on Mon Jun 8 2015 15:29:47 for My Project by &#160;<a href="http://www.doxygen.org/index.html">
  585. <img class="footer" src="doxygen.png" alt="doxygen"/>
  586. </a> 1.8.9.1
  587. </small></address>
  588. </body>
  589. </html>