📄 main_8c.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>main.C File Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body bgcolor="#ffffff"><!-- Generated by Doxygen 1.2.12 --><center><a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center><hr><h1>main.C File Reference</h1><code>#include "<a class="el" href="SenseHandler_8h-source.html">SenseHandler.h</a>"</code><br><code>#include "<a class="el" href="Player_8h-source.html">Player.h</a>"</code><br><code>#include "<a class="el" href="Parse_8h-source.html">Parse.h</a>"</code><br><code>#include <string.h></code><br><code>#include <pthread.h></code><br><code>#include <stdlib.h></code><br><p>Include dependency graph for main.C:<p><center><img src="main_8C__incl.gif" border="0" usemap="#main.C_map" alt="Include dependency graph"></center><map name="main.C_map"><area href="SenseHandler_8h.html" shape="rect" coords="375,414,471,432" alt=""><area href="Connection_8h.html" shape="rect" coords="207,347,293,366" alt=""><area href="ActHandler_8h.html" shape="rect" coords="245,414,330,432" alt=""><area href="GenericValues_8h.html" shape="rect" coords="237,80,338,99" alt=""><area href="Logger_8h.html" shape="rect" coords="479,147,541,166" alt=""><area href="WorldModel_8h.html" shape="rect" coords="379,347,470,366" alt=""><area href="Objects_8h.html" shape="rect" coords="358,280,422,299" alt=""><area href="SoccerTypes_8h.html" shape="rect" coords="157,214,247,232" alt=""><area href="Formations_8h.html" shape="rect" coords="79,480,162,499" alt=""><area href="Geometry_8h.html" shape="rect" coords="69,147,143,166" alt=""><area href="ServerSettings_8h.html" shape="rect" coords="261,147,362,166" alt=""><area href="PlayerSettings_8h.html" shape="rect" coords="367,214,466,232" alt=""><area href="Player_8h.html" shape="rect" coords="259,547,315,566" alt=""><area href="BasicPlayer_8h.html" shape="rect" coords="245,480,330,499" alt=""><area href="Parse_8h.html" shape="rect" coords="546,547,597,566" alt=""></map><p><a href="main_8C-source.html">Go to the source code of this file.</a><table border=0 cellpadding=0 cellspacing=0><tr><td colspan=2><br><h2>Functions</h2></td></tr><tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="main_8C.html#a1">printOptions</a> ()</td></tr><tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="main_8C.html#a2">main</a> (int argc, char *argv[])</td></tr><tr><td colspan=2><br><h2>Variables</h2></td></tr><tr><td nowrap align=right valign=top><a class="el" href="classLogger.html">Logger</a> </td><td valign=bottom><a class="el" href="main_8C.html#a0">Log</a></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2> <pre><b>File:</b> <a class="el" href="main_8C.html">main.C</a><b>Project:</b> Robocup Soccer Simulation Team: UvA Trilearn 2001<b>Authors:</b> Jelle Kok and Remco de Boer<b>Created:</b> 28/11/2000<b>Last Revision:</b> 06/01/2002<b>Contents:</b> This file contains the main of the program that is used to start the agent. It creates all classes, starts the different threads and calls the mainloop. Furthermore it parses the specified arguments to adjust the variables.</pre><p><p>Definition in file <a class="el" href="main_8C-source.html">main.C</a>.<hr><h2>Function Documentation</h2><a name="a2" doxytag="main.C::main"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> int main </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname" nowrap> <em>argc</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>char * </td> <td class="mdname" nowrap> <em>argv</em>[]</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This is the main function and creates and links all the different classes. First it reads in all the parameters from the command prompt (<program name> -help) and uses these values to create the classes. After all the classes are linked, the mainLoop in the <a class="el" href="classPlayer.html">Player</a> class is called. <p>Definition at line <a class="el" href="main_8C-source.html#l00059">59</a> of file <a class="el" href="main_8C-source.html">main.C</a>.<p>References <a class="el" href="Connection_8C-source.html#l00151">Connection::disconnect</a>(), <a class="el" href="namespace_3globalScope_4.html#a249a201">FT_INITIAL</a>, <a class="el" href="ServerSettings_8C-source.html#l01431">ServerSettings::getPort</a>(), <a class="el" href="Player_8C-source.html#l00092">Player::mainLoop</a>(), <a class="el" href="SoccerTypes_8h-source.html#l00068">MAX_MSG</a>, <a class="el" href="SoccerTypes_8h-source.html#l00070">MAX_TEAM_NAME_LENGTH</a>, <a class="el" href="Parse_8C-source.html#l00140">Parse::parseFirstDouble</a>(), <a class="el" href="Parse_8C-source.html#l00107">Parse::parseFirstInt</a>(), <a class="el" href="main_8C-source.html#l00208">printOptions</a>(), <a class="el" href="ServerSettings_8C-source.html#l00502">ServerSettings::readValues</a>(), <a class="el" href="GenericValues_8C-source.html#l00372">GenericValues::readValues</a>(), <a class="el" href="Logger_8C-source.html#l00159">Logger::restartTimer</a>(), <a class="el" href="Logger_8C-source.html#l00205">Logger::setMaxLogLevel</a>(), <a class="el" href="Logger_8C-source.html#l00187">Logger::setMinLogLevel</a>(), <a class="el" href="Logger_8C-source.html#l00266">Logger::setOutputStream</a>(), and <a class="el" href="Player_8C-source.html#l00821">Player::test_only_update</a>(). </td> </tr></table><a name="a1" doxytag="main.C::printOptions"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void printOptions </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This function prints the command prompt options that can be supplied to the program. <p>Definition at line <a class="el" href="main_8C-source.html#l00208">208</a> of file <a class="el" href="main_8C-source.html">main.C</a>.<p>Referenced by <a class="el" href="main_8C-source.html#l00059">main</a>(). </td> </tr></table><hr><h2>Variable Documentation</h2><a name="a0" doxytag="main.C::Log"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classLogger.html">Logger</a> Log </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This is a reference to the <a class="el" href="classLogger.html">Logger</a> to write log info to <p>Definition at line <a class="el" href="main_8C-source.html#l00052">52</a> of file <a class="el" href="main_8C-source.html">main.C</a>. </td> </tr></table><hr><address><small>Generated on Thu Mar 7 00:37:47 2002 for UvA Trilearn 2001 by<a href="http://www.doxygen.org/index.html"><img src="doxygen.gif" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.12 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>, © 1997-2001</small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -