123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205 |
- <!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.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>
- <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>
- <!-- 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="#nested-classes">Classes</a> |
- <a href="#namespaces">Namespaces</a> |
- <a href="#func-members">Functions</a> |
- <a href="#var-members">Variables</a> </div>
- <div class="headertitle">
- <div class="title">door.cpp File Reference</div> </div>
- </div><!--header-->
- <div class="contents">
- <p>Door.
- <a href="#details">More...</a></p>
- <div class="textblock"><code>#include "door.h"</code><br />
- <code>#include <algorithm></code><br />
- <code>#include <chrono></code><br />
- <code>#include <ctype.h></code><br />
- <code>#include <string.h></code><br />
- <code>#include <string></code><br />
- <code>#include <thread></code><br />
- <code>#include <libgen.h></code><br />
- <code>#include <ctime></code><br />
- <code>#include <iomanip></code><br />
- <code>#include <signal.h></code><br />
- <code>#include <unistd.h></code><br />
- <code>#include <iconv.h></code><br />
- <code>#include <iostream></code><br />
- <code>#include <pwd.h></code><br />
- </div><div class="textblock"><div class="dynheader">
- Include dependency graph for door.cpp:</div>
- <div class="dyncontent">
- <div class="center"><img src="door_8cpp__incl.png" border="0" usemap="#door_8cpp" alt=""/></div>
- <map name="door_8cpp" id="door_8cpp">
- <area shape="rect" title="Door." alt="" coords="1328,5,1405,32"/>
- <area shape="rect" href="door_8h_source.html" title=" " alt="" coords="657,80,719,107"/>
- <area shape="rect" title=" " alt="" coords="5,155,64,181"/>
- <area shape="rect" title=" " alt="" coords="1061,155,1141,181"/>
- <area shape="rect" title=" " alt="" coords="1165,155,1240,181"/>
- <area shape="rect" title=" " alt="" coords="1036,80,1121,107"/>
- <area shape="rect" title=" " alt="" coords="1145,80,1212,107"/>
- <area shape="rect" title=" " alt="" coords="1237,80,1307,107"/>
- <area shape="rect" title=" " alt="" coords="1331,80,1402,107"/>
- <area shape="rect" title=" " alt="" coords="1427,80,1485,107"/>
- <area shape="rect" title=" " alt="" coords="1509,80,1573,107"/>
- <area shape="rect" title=" " alt="" coords="1597,80,1672,107"/>
- <area shape="rect" title=" " alt="" coords="1696,80,1771,107"/>
- <area shape="rect" title=" " alt="" coords="1795,80,1869,107"/>
- <area shape="rect" title=" " alt="" coords="1893,80,1961,107"/>
- <area shape="rect" title=" " alt="" coords="1985,80,2047,107"/>
- <area shape="rect" title=" " alt="" coords="197,155,296,181"/>
- <area shape="rect" title=" " alt="" coords="320,155,387,181"/>
- <area shape="rect" title=" " alt="" coords="411,155,485,181"/>
- <area shape="rect" title=" " alt="" coords="509,155,595,181"/>
- <area shape="rect" title=" " alt="" coords="620,155,681,181"/>
- <area shape="rect" title=" " alt="" coords="705,155,748,181"/>
- <area shape="rect" title=" " alt="" coords="772,155,849,181"/>
- <area shape="rect" title=" " alt="" coords="874,155,950,181"/>
- <area shape="rect" title=" " alt="" coords="974,155,1037,181"/>
- <area shape="rect" title=" " alt="" coords="89,155,173,181"/>
- </map>
- </div>
- </div><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
- Classes</h2></td></tr>
- <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classdoor_1_1IConv.html">door::IConv</a></td></tr>
- <tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Converts from one encoding to another. Uses iconv (international conversion) API. <a href="classdoor_1_1IConv.html#details">More...</a><br /></td></tr>
- <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
- Namespaces</h2></td></tr>
- <tr class="memitem:namespacedoor"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html">door</a></td></tr>
- <tr class="memdesc:namespacedoor"><td class="mdescLeft"> </td><td class="mdescRight">The BBS door project. This is an attempt at writing a C++ BBS door toolkit. <br /></td></tr>
- <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
- Functions</h2></td></tr>
- <tr class="memitem:afa94e91868d469077e4d3b400dedfd6c"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#afa94e91868d469077e4d3b400dedfd6c">door::to_lower</a> (std::string &text)</td></tr>
- <tr class="memdesc:afa94e91868d469077e4d3b400dedfd6c"><td class="mdescLeft"> </td><td class="mdescRight">convert string to lowercase <a href="namespacedoor.html#afa94e91868d469077e4d3b400dedfd6c">More...</a><br /></td></tr>
- <tr class="separator:afa94e91868d469077e4d3b400dedfd6c"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:acba445fc4d33e1b0c1ff2b648cc2899d"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#acba445fc4d33e1b0c1ff2b648cc2899d">door::replace</a> (std::string &str, const std::string &from, const std::string &to)</td></tr>
- <tr class="memdesc:acba445fc4d33e1b0c1ff2b648cc2899d"><td class="mdescLeft"> </td><td class="mdescRight">Replaces one string with another once. <a href="namespacedoor.html#acba445fc4d33e1b0c1ff2b648cc2899d">More...</a><br /></td></tr>
- <tr class="separator:acba445fc4d33e1b0c1ff2b648cc2899d"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a5cc0209e9203231d1bdb1e6b7f0876c3"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#a5cc0209e9203231d1bdb1e6b7f0876c3">door::replace</a> (std::string &str, const char *from, const char *to)</td></tr>
- <tr class="memdesc:a5cc0209e9203231d1bdb1e6b7f0876c3"><td class="mdescLeft"> </td><td class="mdescRight">Replace all instances of from with to. <a href="namespacedoor.html#a5cc0209e9203231d1bdb1e6b7f0876c3">More...</a><br /></td></tr>
- <tr class="separator:a5cc0209e9203231d1bdb1e6b7f0876c3"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a4fc2f3f7f1b3908cb71bd1d275594fe9"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#a4fc2f3f7f1b3908cb71bd1d275594fe9">door::sig_handler</a> (int signal)</td></tr>
- <tr class="memdesc:a4fc2f3f7f1b3908cb71bd1d275594fe9"><td class="mdescLeft"> </td><td class="mdescRight">Signal handler for detecting hangup/broken pipe. <a href="namespacedoor.html#a4fc2f3f7f1b3908cb71bd1d275594fe9">More...</a><br /></td></tr>
- <tr class="separator:a4fc2f3f7f1b3908cb71bd1d275594fe9"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a5efa4fb96eacd6b90e5cbb0bd985f3fc"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#a5efa4fb96eacd6b90e5cbb0bd985f3fc">door::cp437toUnicode</a> (std::string input, std::string &out)</td></tr>
- <tr class="memdesc:a5efa4fb96eacd6b90e5cbb0bd985f3fc"><td class="mdescLeft"> </td><td class="mdescRight">Convert from CP437 to unicode. <a href="namespacedoor.html#a5efa4fb96eacd6b90e5cbb0bd985f3fc">More...</a><br /></td></tr>
- <tr class="separator:a5efa4fb96eacd6b90e5cbb0bd985f3fc"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a7e94df0d0af14da619835aa90cfa8f2a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#a7e94df0d0af14da619835aa90cfa8f2a">door::cp437toUnicode</a> (const char *input, std::string &out)</td></tr>
- <tr class="memdesc:a7e94df0d0af14da619835aa90cfa8f2a"><td class="mdescLeft"> </td><td class="mdescRight">Convert from CP437 to unicode. <a href="namespacedoor.html#a7e94df0d0af14da619835aa90cfa8f2a">More...</a><br /></td></tr>
- <tr class="separator:a7e94df0d0af14da619835aa90cfa8f2a"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ad5d6277de5e8274cec970a4633d713b1"><td class="memItemLeft" align="right" valign="top">std::ostream & </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#ad5d6277de5e8274cec970a4633d713b1">door::operator<<</a> (std::ostream &os, const Clrscr &clr)</td></tr>
- <tr class="separator:ad5d6277de5e8274cec970a4633d713b1"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aa6b909ef984a2aabc5b9a570884dff94"><td class="memItemLeft" align="right" valign="top">std::ostream & </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#aa6b909ef984a2aabc5b9a570884dff94">door::operator<<</a> (std::ostream &os, const NewLine &nl)</td></tr>
- <tr class="separator:aa6b909ef984a2aabc5b9a570884dff94"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aae6ca4805185baa51dcc661a69fa801b"><td class="memItemLeft" align="right" valign="top">std::ostream & </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#aae6ca4805185baa51dcc661a69fa801b">door::operator<<</a> (std::ostream &os, const Goto &g)</td></tr>
- <tr class="separator:aae6ca4805185baa51dcc661a69fa801b"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
- Variables</h2></td></tr>
- <tr class="memitem:a64600b79b9b73f4705859ce4efb1a2fd"><td class="memItemLeft" align="right" valign="top">std::list< char > </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#a64600b79b9b73f4705859ce4efb1a2fd">door::pushback</a></td></tr>
- <tr class="memdesc:a64600b79b9b73f4705859ce4efb1a2fd"><td class="mdescLeft"> </td><td class="mdescRight">pushback buffer for keys. <a href="namespacedoor.html#a64600b79b9b73f4705859ce4efb1a2fd">More...</a><br /></td></tr>
- <tr class="separator:a64600b79b9b73f4705859ce4efb1a2fd"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a1626abff63f7a1b9dc696969c860283b"><td class="memItemLeft" align="right" valign="top"><a id="a1626abff63f7a1b9dc696969c860283b"></a>
- bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#a1626abff63f7a1b9dc696969c860283b">door::unicode</a> = false</td></tr>
- <tr class="memdesc:a1626abff63f7a1b9dc696969c860283b"><td class="mdescLeft"> </td><td class="mdescRight">Was unicode detected? <br /></td></tr>
- <tr class="separator:a1626abff63f7a1b9dc696969c860283b"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aeade8b521c7f95755fdb166727c2b87c"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#aeade8b521c7f95755fdb166727c2b87c">door::full_cp437</a> = false</td></tr>
- <tr class="memdesc:aeade8b521c7f95755fdb166727c2b87c"><td class="mdescLeft"> </td><td class="mdescRight">Was full CP437 detected? <a href="namespacedoor.html#aeade8b521c7f95755fdb166727c2b87c">More...</a><br /></td></tr>
- <tr class="separator:aeade8b521c7f95755fdb166727c2b87c"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ac39a1dfdb8dec210d28133625f860bc1"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#ac39a1dfdb8dec210d28133625f860bc1">door::debug_capture</a> = false</td></tr>
- <tr class="memdesc:ac39a1dfdb8dec210d28133625f860bc1"><td class="mdescLeft"> </td><td class="mdescRight">Capture the output for debugging. <a href="namespacedoor.html#ac39a1dfdb8dec210d28133625f860bc1">More...</a><br /></td></tr>
- <tr class="separator:ac39a1dfdb8dec210d28133625f860bc1"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ac70193caf66e4b9aed1529593727a6eb"><td class="memItemLeft" align="right" valign="top">Clrscr </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#ac70193caf66e4b9aed1529593727a6eb">door::cls</a></td></tr>
- <tr class="separator:ac70193caf66e4b9aed1529593727a6eb"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a36352ded72aee66b10e1bda6d3d8efb8"><td class="memItemLeft" align="right" valign="top">NewLine </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#a36352ded72aee66b10e1bda6d3d8efb8">door::nl</a></td></tr>
- <tr class="separator:a36352ded72aee66b10e1bda6d3d8efb8"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aa6a7c86274470fd22e45676ba6eebb36"><td class="memItemLeft" align="right" valign="top"><a id="aa6a7c86274470fd22e45676ba6eebb36"></a>
- const char </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#aa6a7c86274470fd22e45676ba6eebb36">door::SaveCursor</a> [] = "\x1b[s"</td></tr>
- <tr class="memdesc:aa6a7c86274470fd22e45676ba6eebb36"><td class="mdescLeft"> </td><td class="mdescRight">ANSI Save Cursor position command. <br /></td></tr>
- <tr class="separator:aa6a7c86274470fd22e45676ba6eebb36"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a1ae3caab423b38b35e887d79b5ac1811"><td class="memItemLeft" align="right" valign="top"><a id="a1ae3caab423b38b35e887d79b5ac1811"></a>
- const char </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#a1ae3caab423b38b35e887d79b5ac1811">door::RestoreCursor</a> [] = "\x1b[u"</td></tr>
- <tr class="memdesc:a1ae3caab423b38b35e887d79b5ac1811"><td class="mdescLeft"> </td><td class="mdescRight">ANSI Restore Cursor position command. <br /></td></tr>
- <tr class="separator:a1ae3caab423b38b35e887d79b5ac1811"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a3274dff22ddb19a3e429a703ee6f3e57"><td class="memItemLeft" align="right" valign="top">renderFunction </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedoor.html#a3274dff22ddb19a3e429a703ee6f3e57">door::rBlueYellow</a></td></tr>
- <tr class="memdesc:a3274dff22ddb19a3e429a703ee6f3e57"><td class="mdescLeft"> </td><td class="mdescRight">BlueYellow <a class="el" href="classdoor_1_1Render.html" title="Rendering a string with ANSIColor.">Render</a> example function. <a href="namespacedoor.html#a3274dff22ddb19a3e429a703ee6f3e57">More...</a><br /></td></tr>
- <tr class="separator:a3274dff22ddb19a3e429a703ee6f3e57"><td class="memSeparator" colspan="2"> </td></tr>
- </table>
- <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
- <div class="textblock"><p>Door. </p>
- </div></div><!-- contents -->
- <!-- 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>
|