<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>DTN Reference Implementation: dtn::TestCommand Class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.6 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="main.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="namespacedtn.html">dtn</a>::<a class="el" href="classdtn_1_1TestCommand.html">TestCommand</a> </div> </div> <div class="contents"> <h1>dtn::TestCommand Class Reference</h1><!-- doxytag: class="dtn::TestCommand" --><code>#include <<a class="el" href="TestCommand_8h-source.html">TestCommand.h</a>></code> <p> <p> <a href="classdtn_1_1TestCommand-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2> CommandModule for the "test" command. <p>Definition at line <a class="el" href="TestCommand_8h-source.html#l00029">29</a> of file <a class="el" href="TestCommand_8h-source.html">TestCommand.h</a>.</p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1TestCommand.html#f5b610d52bda65e61952c6b1829af742">TestCommand</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1TestCommand.html#de12e12e9844cab954b0e6848b9fe280">bind_vars</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Binding function. <a href="#de12e12e9844cab954b0e6848b9fe280"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1TestCommand.html#15738580fa917440a436ac316750e084">exec</a> (int argc, const char **argv, Tcl_Interp *interp)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Virtual from CommandModule. <a href="#15738580fa917440a436ac316750e084"></a><br></td></tr> <tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1TestCommand.html#10c96b8c63976960caa21c676be044bc">id_</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">sets the test node id <a href="#10c96b8c63976960caa21c676be044bc"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1TestCommand.html#b409b7ec6a35ff40edd57ecccab93431">initscript_</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">tcl script to run at init <a href="#b409b7ec6a35ff40edd57ecccab93431"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1TestCommand.html#73146361b043bf8f7a8c9645ee7a9332">argv_</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">"list" of space-separated args <a href="#73146361b043bf8f7a8c9645ee7a9332"></a><br></td></tr> </table> <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="f5b610d52bda65e61952c6b1829af742"></a><!-- doxytag: member="dtn::TestCommand::TestCommand" ref="f5b610d52bda65e61952c6b1829af742" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">dtn::TestCommand::TestCommand </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> <p>Definition at line <a class="el" href="TestCommand_8cc-source.html#l00025">25</a> of file <a class="el" href="TestCommand_8cc-source.html">TestCommand.cc</a>.</p> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="de12e12e9844cab954b0e6848b9fe280"></a><!-- doxytag: member="dtn::TestCommand::bind_vars" ref="de12e12e9844cab954b0e6848b9fe280" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void dtn::TestCommand::bind_vars </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> Binding function. <p> Since the class is created before logging is initialized, this can't be in the constructor. <p>Definition at line <a class="el" href="TestCommand_8cc-source.html#l00034">34</a> of file <a class="el" href="TestCommand_8cc-source.html">TestCommand.cc</a>.</p> <p>References <a class="el" href="TestCommand_8h-source.html#l00046">argv_</a>, <a class="el" href="TestCommand_8h-source.html#l00044">id_</a>, and <a class="el" href="TestCommand_8h-source.html#l00045">initscript_</a>.</p> <p>Referenced by <a class="el" href="dtnd_8cc-source.html#l00117">dtn::DTND::init_testcmd()</a>.</p> </div> </div><p> <a class="anchor" name="15738580fa917440a436ac316750e084"></a><!-- doxytag: member="dtn::TestCommand::exec" ref="15738580fa917440a436ac316750e084" args="(int argc, const char **argv, Tcl_Interp *interp)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int dtn::TestCommand::exec </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>argc</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char ** </td> <td class="paramname"> <em>argv</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">Tcl_Interp * </td> <td class="paramname"> <em>interp</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Virtual from CommandModule. <p> <p>Definition at line <a class="el" href="TestCommand_8cc-source.html#l00045">45</a> of file <a class="el" href="TestCommand_8cc-source.html">TestCommand.cc</a>.</p> <p>References <a class="el" href="SDNV_8cc-source.html#l00044">ASSERT</a>.</p> </div> </div><p> <hr><h2>Member Data Documentation</h2> <a class="anchor" name="10c96b8c63976960caa21c676be044bc"></a><!-- doxytag: member="dtn::TestCommand::id_" ref="10c96b8c63976960caa21c676be044bc" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int <a class="el" href="classdtn_1_1TestCommand.html#10c96b8c63976960caa21c676be044bc">dtn::TestCommand::id_</a> </td> </tr> </table> </div> <div class="memdoc"> <p> sets the test node id <p> <p>Definition at line <a class="el" href="TestCommand_8h-source.html#l00044">44</a> of file <a class="el" href="TestCommand_8h-source.html">TestCommand.h</a>.</p> <p>Referenced by <a class="el" href="TestCommand_8cc-source.html#l00034">bind_vars()</a>, and <a class="el" href="dtnd_8cc-source.html#l00090">dtn::DTND::fill_options()</a>.</p> </div> </div><p> <a class="anchor" name="b409b7ec6a35ff40edd57ecccab93431"></a><!-- doxytag: member="dtn::TestCommand::initscript_" ref="b409b7ec6a35ff40edd57ecccab93431" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">std::string <a class="el" href="classdtn_1_1TestCommand.html#b409b7ec6a35ff40edd57ecccab93431">dtn::TestCommand::initscript_</a> </td> </tr> </table> </div> <div class="memdoc"> <p> tcl script to run at init <p> <p>Definition at line <a class="el" href="TestCommand_8h-source.html#l00045">45</a> of file <a class="el" href="TestCommand_8h-source.html">TestCommand.h</a>.</p> <p>Referenced by <a class="el" href="TestCommand_8cc-source.html#l00034">bind_vars()</a>, and <a class="el" href="dtnd_8cc-source.html#l00152">dtn::DTND::main()</a>.</p> </div> </div><p> <a class="anchor" name="73146361b043bf8f7a8c9645ee7a9332"></a><!-- doxytag: member="dtn::TestCommand::argv_" ref="73146361b043bf8f7a8c9645ee7a9332" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">std::string <a class="el" href="classdtn_1_1TestCommand.html#73146361b043bf8f7a8c9645ee7a9332">dtn::TestCommand::argv_</a> </td> </tr> </table> </div> <div class="memdoc"> <p> "list" of space-separated args <p> <p>Definition at line <a class="el" href="TestCommand_8h-source.html#l00046">46</a> of file <a class="el" href="TestCommand_8h-source.html">TestCommand.h</a>.</p> <p>Referenced by <a class="el" href="TestCommand_8cc-source.html#l00034">bind_vars()</a>, and <a class="el" href="dtnd_8cc-source.html#l00117">dtn::DTND::init_testcmd()</a>.</p> </div> </div><p> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="TestCommand_8h-source.html">TestCommand.h</a><li><a class="el" href="TestCommand_8cc-source.html">TestCommand.cc</a></ul> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Mon Jul 21 14:09:52 2008 for DTN Reference Implementation by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> </body> </html>