123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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.17"/>
- <meta name="viewport" content="width=device-width, initial-scale=1"/>
- <title>Bugz Door Project: door-example.cpp</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>
- <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 id="projectalign" style="padding-left: 0.5em;">
- <div id="projectname">Bugz Door Project
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <!-- end header part -->
- <!-- Generated by Doxygen 1.8.17 -->
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- var searchBox = new SearchBox("searchBox", "search",false,'Search');
- /* @license-end */
- </script>
- <script type="text/javascript" src="menudata.js"></script>
- <script type="text/javascript" src="menu.js"></script>
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- $(function() {
- initMenu('',true,false,'search.php','Search');
- $(document).ready(function() { init_search(); });
- });
- /* @license-end */</script>
- <div id="main-nav"></div>
- </div><!-- top -->
- <!-- 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 class="header">
- <div class="headertitle">
- <div class="title">door-example.cpp</div> </div>
- </div><!--header-->
- <div class="contents">
- <p>Construct a new Door object using the commandline parameters given to the main function.</p>
- <div class="fragment"><div class="line"><span class="preprocessor">#include "door.h"</span></div>
- <div class="line"> </div>
- <div class="line"><span class="keywordtype">int</span> main(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> *argv[]) {</div>
- <div class="line"> <a name="_a0"></a><a class="code" href="classdoor_1_1Door.html">door::Door</a> <a class="code" href="namespacedoor.html">door</a>(<span class="stringliteral">"example"</span>, argc, argv);</div>
- <div class="line"> </div>
- <div class="line"> <span class="comment">// reset colors, clear screen.</span></div>
- <div class="line"> <a class="code" href="namespacedoor.html">door</a> << <a name="a1"></a><a class="code" href="namespacedoor.html#ae3a70989c43f6cb3522308af748b4481">door::reset</a> << <a name="a2"></a><a class="code" href="namespacedoor.html#ac70193caf66e4b9aed1529593727a6eb">door::cls</a> << <a name="a3"></a><a class="code" href="namespacedoor.html#a36352ded72aee66b10e1bda6d3d8efb8">door::nl</a>;</div>
- <div class="line"> </div>
- <div class="line"> <span class="comment">// set Yellow on Blue</span></div>
- <div class="line"> <a class="code" href="namespacedoor.html">door</a> << <a name="_a4"></a><a class="code" href="classdoor_1_1ANSIColor.html">door::ANSIColor</a>(<a name="a5"></a><a class="code" href="namespacedoor.html#abafe0a9e79349883af3ab2a7fb544366a8a568e5f41b7e4da88fe5c4a00aad34e">door::COLOR::YELLOW</a>, <a name="a6"></a><a class="code" href="namespacedoor.html#abafe0a9e79349883af3ab2a7fb544366a1b3e1ee9bff86431dea6b181365ba65f">door::COLOR::BLUE</a>,</div>
- <div class="line"> <a name="a7"></a><a class="code" href="namespacedoor.html#add24f9a933f9a6e613de6d56854e5c52a2909dd0e0336f10b6da9735b859a3d19">door::ATTR::BOLD</a>);</div>
- <div class="line"> </div>
- <div class="line"> <span class="comment">// display text, reset colors, NewLine.</span></div>
- <div class="line"> <a class="code" href="namespacedoor.html">door</a> << <span class="stringliteral">"Welcome YELLOW on BLUE! Press a key to continue... "</span> << <a class="code" href="namespacedoor.html#ae3a70989c43f6cb3522308af748b4481">door::reset</a></div>
- <div class="line"> << <a class="code" href="namespacedoor.html#a36352ded72aee66b10e1bda6d3d8efb8">door::nl</a>;</div>
- <div class="line"> </div>
- <div class="line"> <a class="code" href="namespacedoor.html">door</a>.sleep_key(<a class="code" href="namespacedoor.html">door</a>.inactivity); <span class="comment">// Wait for a keypress before exiting</span></div>
- <div class="line">}</div>
- </div><!-- fragment --> </div><!-- contents -->
- <div class="ttc" id="aclassdoor_1_1Door_html"><div class="ttname"><a href="classdoor_1_1Door.html">door::Door</a></div><div class="ttdef"><b>Definition:</b> door.h:193</div></div>
- <div class="ttc" id="anamespacedoor_html_add24f9a933f9a6e613de6d56854e5c52a2909dd0e0336f10b6da9735b859a3d19"><div class="ttname"><a href="namespacedoor.html#add24f9a933f9a6e613de6d56854e5c52a2909dd0e0336f10b6da9735b859a3d19">door::ATTR::BOLD</a></div><div class="ttdeci">@ BOLD</div><div class="ttdoc">BOLD is the same as BRIGHT.</div></div>
- <div class="ttc" id="aclassdoor_1_1ANSIColor_html"><div class="ttname"><a href="classdoor_1_1ANSIColor.html">door::ANSIColor</a></div><div class="ttdoc">Foreground, Background and Attributes.</div><div class="ttdef"><b>Definition:</b> door.h:131</div></div>
- <div class="ttc" id="anamespacedoor_html_ac70193caf66e4b9aed1529593727a6eb"><div class="ttname"><a href="namespacedoor.html#ac70193caf66e4b9aed1529593727a6eb">door::cls</a></div><div class="ttdeci">Clrscr cls</div><div class="ttdef"><b>Definition:</b> door.cpp:1221</div></div>
- <div class="ttc" id="anamespacedoor_html_a36352ded72aee66b10e1bda6d3d8efb8"><div class="ttname"><a href="namespacedoor.html#a36352ded72aee66b10e1bda6d3d8efb8">door::nl</a></div><div class="ttdeci">NewLine nl</div><div class="ttdef"><b>Definition:</b> door.cpp:1249</div></div>
- <div class="ttc" id="anamespacedoor_html_abafe0a9e79349883af3ab2a7fb544366a8a568e5f41b7e4da88fe5c4a00aad34e"><div class="ttname"><a href="namespacedoor.html#abafe0a9e79349883af3ab2a7fb544366a8a568e5f41b7e4da88fe5c4a00aad34e">door::COLOR::YELLOW</a></div><div class="ttdeci">@ YELLOW</div><div class="ttdoc">YELLOW (3)</div></div>
- <div class="ttc" id="anamespacedoor_html_ae3a70989c43f6cb3522308af748b4481"><div class="ttname"><a href="namespacedoor.html#ae3a70989c43f6cb3522308af748b4481">door::reset</a></div><div class="ttdeci">ANSIColor reset(ATTR::RESET)</div><div class="ttdoc">reset colors to normal</div><div class="ttdef"><b>Definition:</b> door.h:400</div></div>
- <div class="ttc" id="anamespacedoor_html"><div class="ttname"><a href="namespacedoor.html">door</a></div><div class="ttdoc">The BBS door project. This is an attempt at writing a C++ BBS door toolkit.</div><div class="ttdef"><b>Definition:</b> ansicolor.cpp:9</div></div>
- <div class="ttc" id="anamespacedoor_html_abafe0a9e79349883af3ab2a7fb544366a1b3e1ee9bff86431dea6b181365ba65f"><div class="ttname"><a href="namespacedoor.html#abafe0a9e79349883af3ab2a7fb544366a1b3e1ee9bff86431dea6b181365ba65f">door::COLOR::BLUE</a></div><div class="ttdeci">@ BLUE</div><div class="ttdoc">BLUE (4)</div></div>
- <!-- start footer part -->
- <hr class="footer"/><address class="footer"><small>
- Generated by  <a href="http://www.doxygen.org/index.html">
- <img class="footer" src="doxygen.png" alt="doxygen"/>
- </a> 1.8.17
- </small></address>
- </body>
- </html>
|