dtn::TestCommand Class Reference

#include <TestCommand.h>

Inheritance diagram for dtn::TestCommand:

oasys::TclCommand oasys::Logger List of all members.

Detailed Description

CommandModule for the "test" command.

Definition at line 29 of file TestCommand.h.

Public Member Functions

 TestCommand ()
void bind_vars ()
 Binding function.
virtual int exec (int argc, const char **argv, Tcl_Interp *interp)
 Virtual from CommandModule.

Public Attributes

int id_
 sets the test node id
std::string initscript_
 tcl script to run at init
std::string argv_
 "list" of space-separated args


Constructor & Destructor Documentation

dtn::TestCommand::TestCommand (  ) 

Definition at line 22 of file TestCommand.cc.

References oasys::TclCommand::add_to_help().


Member Function Documentation

void dtn::TestCommand::bind_vars (  ) 

Binding function.

Since the class is created before logging is initialized, this can't be in the constructor.

Definition at line 31 of file TestCommand.cc.

References argv_, oasys::TclCommand::bind_var(), id_, and initscript_.

Referenced by dtn::DTND::init_testcmd().

int dtn::TestCommand::exec ( int  argc,
const char **  argv,
Tcl_Interp *  interp 
) [virtual]

Virtual from CommandModule.

Reimplemented from oasys::TclCommand.

Definition at line 42 of file TestCommand.cc.

References ASSERT, NOTREACHED, and oasys::TclCommand::resultf().


Member Data Documentation

int dtn::TestCommand::id_

sets the test node id

Definition at line 44 of file TestCommand.h.

Referenced by bind_vars(), and dtn::DTND::get_options().

std::string dtn::TestCommand::initscript_

tcl script to run at init

Definition at line 45 of file TestCommand.h.

Referenced by bind_vars(), and dtn::DTND::main().

std::string dtn::TestCommand::argv_

"list" of space-separated args

Definition at line 46 of file TestCommand.h.

Referenced by bind_vars(), and dtn::DTND::init_testcmd().


The documentation for this class was generated from the following files:
Generated on Thu Jun 7 16:56:57 2007 for DTN Reference Implementation by  doxygen 1.5.1