DTNOpenCommand Class Reference

Inheritance diagram for DTNOpenCommand:

oasys::TclCommand oasys::Logger

List of all members.


Detailed Description

Definition at line 44 of file dtntest.cc.


Public Member Functions

void init_opts ()
 DTNOpenCommand ()
int exec (int argc, const char **argv, Tcl_Interp *interp)
 Override this to parse the list of arguments as strings.

Public Attributes

oasys::OptParser parser_
OpenOpts opts_

Classes

struct  OpenOpts

Constructor & Destructor Documentation

DTNOpenCommand::DTNOpenCommand (  )  [inline]

Definition at line 58 of file dtntest.cc.

References oasys::OptParser::addopt(), opts_, parser_, and DTNOpenCommand::OpenOpts::version_.


Member Function Documentation

void DTNOpenCommand::init_opts (  )  [inline]

Definition at line 54 of file dtntest.cc.

References DTN_IPC_VERSION, opts_, and DTNOpenCommand::OpenOpts::version_.

Referenced by exec().

int DTNOpenCommand::exec ( int  argc,
const char **  argv,
Tcl_Interp *  interp 
) [inline, virtual]

Override this to parse the list of arguments as strings.

Parameters:
argc Argument count
argv Argument values
interp Tcl interpreter
Returns:
0 on success, -1 on error

Reimplemented from oasys::TclCommand.

Definition at line 62 of file dtntest.cc.

References dtn_open(), dtn_strerror(), DTN_SUCCESS, dtnipc_version, handle, init_opts(), opts_, oasys::OptParser::parse(), parser_, oasys::TclCommand::resultf(), DTNOpenCommand::OpenOpts::version_, and oasys::TclCommand::wrong_num_args().


Member Data Documentation

oasys::OptParser DTNOpenCommand::parser_

Definition at line 46 of file dtntest.cc.

Referenced by DTNOpenCommand(), and exec().

OpenOpts DTNOpenCommand::opts_

Definition at line 52 of file dtntest.cc.

Referenced by DTNOpenCommand(), exec(), and init_opts().


The documentation for this class was generated from the following file:
Generated on Sat Sep 8 08:36:20 2007 for DTN Reference Implementation by  doxygen 1.5.3