123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619 |
- <!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.cpp 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.cpp File Reference</div> </div>
- </div><!--header-->
- <div class="contents">
- <div class="textblock"><code>#include "<a class="el" href="movie_8h_source.html">movie.h</a>"</code><br />
- </div><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
- Functions</h2></td></tr>
- <tr class="memitem:a5cd9879ec2e8c19fb7bea1b7eff92306"><td class="memItemLeft" align="right" valign="top">string </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> &file)</td></tr>
- <tr class="memdesc:a5cd9879ec2e8c19fb7bea1b7eff92306"><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="#a5cd9879ec2e8c19fb7bea1b7eff92306">More...</a><br /></td></tr>
- <tr class="separator:a5cd9879ec2e8c19fb7bea1b7eff92306"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a14872b961b612dd2ed0e848e205432ab"><td class="memItemLeft" align="right" valign="top">string </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> &file)</td></tr>
- <tr class="memdesc:a14872b961b612dd2ed0e848e205432ab"><td class="mdescLeft"> </td><td class="mdescRight">Finds the information of a movie given its name. <a href="#a14872b961b612dd2ed0e848e205432ab">More...</a><br /></td></tr>
- <tr class="separator:a14872b961b612dd2ed0e848e205432ab"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ad7046e791da7846c172e7277aaf94d14"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8cpp.html#ad7046e791da7846c172e7277aaf94d14">showMovie</a> (string movieinfo)</td></tr>
- <tr class="memdesc:ad7046e791da7846c172e7277aaf94d14"><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="#ad7046e791da7846c172e7277aaf94d14">More...</a><br /></td></tr>
- <tr class="separator:ad7046e791da7846c172e7277aaf94d14"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a1ac8811db306ce6205ddc638ce02963e"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8cpp.html#a1ac8811db306ce6205ddc638ce02963e">showMovies</a> (<a class="el" href="classfilemanip.html">filemanip</a> &file, int start, int end)</td></tr>
- <tr class="memdesc:a1ac8811db306ce6205ddc638ce02963e"><td class="mdescLeft"> </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>
- <tr class="separator:a1ac8811db306ce6205ddc638ce02963e"><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_8cpp.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:aa89f412c80723cef362fdb6ac54c3a46"><td class="memItemLeft" align="right" valign="top">string </td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8cpp.html#aa89f412c80723cef362fdb6ac54c3a46">getMovieName</a> (string movieinfo)</td></tr>
- <tr class="memdesc:aa89f412c80723cef362fdb6ac54c3a46"><td class="mdescLeft"> </td><td class="mdescRight">Given a movie line from the file returns the movie name. <a href="#aa89f412c80723cef362fdb6ac54c3a46">More...</a><br /></td></tr>
- <tr class="separator:aa89f412c80723cef362fdb6ac54c3a46"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a4d7282011b6c01bf329c55be741e491b"><td class="memItemLeft" align="right" valign="top">string </td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8cpp.html#a4d7282011b6c01bf329c55be741e491b">getMovieRating</a> (string movieinfo)</td></tr>
- <tr class="memdesc:a4d7282011b6c01bf329c55be741e491b"><td class="mdescLeft"> </td><td class="mdescRight">Given a movie line from the file returns the movie rating. <a href="#a4d7282011b6c01bf329c55be741e491b">More...</a><br /></td></tr>
- <tr class="separator:a4d7282011b6c01bf329c55be741e491b"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a658aabb68db11d7b29c54c777bd68207"><td class="memItemLeft" align="right" valign="top">string </td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8cpp.html#a658aabb68db11d7b29c54c777bd68207">getMovieYear</a> (string movieinfo)</td></tr>
- <tr class="memdesc:a658aabb68db11d7b29c54c777bd68207"><td class="mdescLeft"> </td><td class="mdescRight">Given a movie line from the file returns the movie release year. <a href="#a658aabb68db11d7b29c54c777bd68207">More...</a><br /></td></tr>
- <tr class="separator:a658aabb68db11d7b29c54c777bd68207"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a587b63fb2f1c6ff6aa0bbfd12ebbdb46"><td class="memItemLeft" align="right" valign="top">string </td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8cpp.html#a587b63fb2f1c6ff6aa0bbfd12ebbdb46">getMovieGenre</a> (string movieinfo)</td></tr>
- <tr class="memdesc:a587b63fb2f1c6ff6aa0bbfd12ebbdb46"><td class="mdescLeft"> </td><td class="mdescRight">Given a movie line from the file returns the movie genre. <a href="#a587b63fb2f1c6ff6aa0bbfd12ebbdb46">More...</a><br /></td></tr>
- <tr class="separator:a587b63fb2f1c6ff6aa0bbfd12ebbdb46"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a9057c8190a50e3b94cb358ee7f9f7efb"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8cpp.html#a9057c8190a50e3b94cb358ee7f9f7efb">getMovieInfo</a> (string movieinfo, string &name, string &rating, string &year, string &genre)</td></tr>
- <tr class="memdesc:a9057c8190a50e3b94cb358ee7f9f7efb"><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="#a9057c8190a50e3b94cb358ee7f9f7efb">More...</a><br /></td></tr>
- <tr class="separator:a9057c8190a50e3b94cb358ee7f9f7efb"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a2c66ce60f7a568afd7a8c2394700e3b1"><td class="memItemLeft" align="right" valign="top">string </td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8cpp.html#a2c66ce60f7a568afd7a8c2394700e3b1">getMovieStudio</a> (string movieinfo)</td></tr>
- <tr class="memdesc:a2c66ce60f7a568afd7a8c2394700e3b1"><td class="mdescLeft"> </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>
- <tr class="separator:a2c66ce60f7a568afd7a8c2394700e3b1"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a724308b84548b6b3f247022f07720dc5"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8cpp.html#a724308b84548b6b3f247022f07720dc5">getMovieInfo</a> (string movieinfo, string &name, string &rating, string &year, string &genre, string &studio)</td></tr>
- <tr class="memdesc:a724308b84548b6b3f247022f07720dc5"><td class="mdescLeft"> </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>
- <tr class="separator:a724308b84548b6b3f247022f07720dc5"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ae2bfae6f7267aa64eaa2b9a1900879e3"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8cpp.html#ae2bfae6f7267aa64eaa2b9a1900879e3">showMovieInLine</a> (string movieinfo)</td></tr>
- <tr class="memdesc:ae2bfae6f7267aa64eaa2b9a1900879e3"><td class="mdescLeft"> </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>
- <tr class="separator:ae2bfae6f7267aa64eaa2b9a1900879e3"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ac3694a5a7bee33f0085a41fd784a366b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="movie_8cpp.html#ac3694a5a7bee33f0085a41fd784a366b">showMoviesInLine</a> (<a class="el" href="classfilemanip.html">filemanip</a> &file, int start, int end)</td></tr>
- <tr class="memdesc:ac3694a5a7bee33f0085a41fd784a366b"><td class="mdescLeft"> </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>
- <tr class="separator:ac3694a5a7bee33f0085a41fd784a366b"><td class="memSeparator" colspan="2"> </td></tr>
- </table>
- <h2 class="groupheader">Function Documentation</h2>
- <a class="anchor" id="a14872b961b612dd2ed0e848e205432ab"></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="a5cd9879ec2e8c19fb7bea1b7eff92306"></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="a587b63fb2f1c6ff6aa0bbfd12ebbdb46"></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="a9057c8190a50e3b94cb358ee7f9f7efb"></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"><em>movieinfo</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">string & </td>
- <td class="paramname"><em>name</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">string & </td>
- <td class="paramname"><em>rating</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">string & </td>
- <td class="paramname"><em>year</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">string & </td>
- <td class="paramname"><em>genre</em> </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="a724308b84548b6b3f247022f07720dc5"></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"><em>movieinfo</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">string & </td>
- <td class="paramname"><em>name</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">string & </td>
- <td class="paramname"><em>rating</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">string & </td>
- <td class="paramname"><em>year</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">string & </td>
- <td class="paramname"><em>genre</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">string & </td>
- <td class="paramname"><em>studio</em> </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, genre, and studio. Answer to (Exercise 3, question 2) </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="aa89f412c80723cef362fdb6ac54c3a46"></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="a4d7282011b6c01bf329c55be741e491b"></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="a2c66ce60f7a568afd7a8c2394700e3b1"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">string getMovieStudio </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 studio. Answer to (Exercise 3, question 1) </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 studio. </dd></dl>
-
- </div>
- </div>
- <a class="anchor" id="a658aabb68db11d7b29c54c777bd68207"></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="ad7046e791da7846c172e7277aaf94d14"></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="ae2bfae6f7267aa64eaa2b9a1900879e3"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void showMovieInLine </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. The info is displayed in one line identified by its fields. Answer to (Exercise 3, question 3) </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="a1ac8811db306ce6205ddc638ce02963e"></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>
- <a class="anchor" id="ac3694a5a7bee33f0085a41fd784a366b"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void showMoviesInLine </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. The information is displayed in one line. Answer to (Exercise 3, question 4) </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>
- </div><!-- contents -->
- <!-- start footer part -->
- <hr class="footer"/><address class="footer"><small>
- Generated on Mon Jun 8 2015 15:29:47 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>
|