#include <TestCommand.h>
Inheritance diagram for dtn::TestCommand:

Definition at line 50 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 | |
| bool | fork_ |
| hook for test scripts to fork off children | |
| 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 52 of file TestCommand.cc.
References argv_, oasys::TclCommand::bind_b(), oasys::TclCommand::bind_i(), oasys::TclCommand::bind_s(), fork_, 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 61 of file TestCommand.cc.
References ASSERT, NOTREACHED, and oasys::TclCommand::resultf().
sets the test node id
Definition at line 65 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 66 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 67 of file TestCommand.h.
Referenced by bind_vars(), and dtn::DTND::init_testcmd().
hook for test scripts to fork off children
Definition at line 68 of file TestCommand.h.
Referenced by bind_vars(), and dtn::DTND::get_options().
1.5.1