dtn::TestCommand Class Reference

CommandModule for the "test" command. More...

#include <TestCommand.h>

List of all members.

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

Detailed Description

CommandModule for the "test" command.

Definition at line 29 of file TestCommand.h.


Constructor & Destructor Documentation

dtn::TestCommand::TestCommand (  ) 

Definition at line 24 of file TestCommand.cc.


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 33 of file TestCommand.cc.

References argv_, 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.

Definition at line 44 of file TestCommand.cc.

References ASSERT.


Member Data Documentation

"list" of space-separated args

Definition at line 46 of file TestCommand.h.

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

sets the test node id

Definition at line 44 of file TestCommand.h.

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

tcl script to run at init

Definition at line 45 of file TestCommand.h.

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


The documentation for this class was generated from the following files:
Generated on Sun Nov 21 11:41:03 2010 for DTN Reference Implementation by  doxygen 1.6.3