#include <TestCommand.h>
Inheritance diagram for dtn::TestCommand:
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 |
dtn::TestCommand::TestCommand | ( | ) |
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().
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().