#include <ShutdownCommand.h>
Inheritance diagram for dtn::ShutdownCommand:
Definition at line 50 of file ShutdownCommand.h.
Public Member Functions | |
ShutdownCommand (DTNServer *server, const char *cmd="shutdown") | |
virtual int | exec (int argc, const char **argv, Tcl_Interp *interp) |
Virtual from CommandModule. | |
Static Protected Member Functions | |
static void | call_exit (void *clientData) |
Protected Attributes | |
DTNServer * | dtnserver_ |
ShutdownCommand::ShutdownCommand | ( | DTNServer * | server, | |
const char * | cmd = "shutdown" | |||
) |
int ShutdownCommand::exec | ( | int | argc, | |
const char ** | argv, | |||
Tcl_Interp * | interp | |||
) | [virtual] |
Virtual from CommandModule.
Reimplemented from oasys::TclCommand.
Definition at line 61 of file ShutdownCommand.cc.
References ShutdownCommand::call_exit(), and oasys::TclCommand::wrong_num_args().
void ShutdownCommand::call_exit | ( | void * | clientData | ) | [static, protected] |
Definition at line 53 of file ShutdownCommand.cc.
References oasys::TclCommandInterp::instance(), and dtn::DTNServer::shutdown().
DTNServer* dtn::ShutdownCommand::dtnserver_ [protected] |
Definition at line 62 of file ShutdownCommand.h.