CommandModule for the "test" command. More...
#include <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 | |
CommandModule for the "test" command.
Definition at line 29 of file TestCommand.h.
| dtn::TestCommand::TestCommand | ( | ) |
Definition at line 24 of file TestCommand.cc.
| 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] |
| 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().
sets the test node id
Definition at line 44 of file TestCommand.h.
Referenced by bind_vars(), and dtn::DTND::fill_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().
1.6.3