DTNSendCommand Class Reference

Inheritance diagram for DTNSendCommand:

oasys::TclCommand oasys::Logger

List of all members.


Detailed Description

Definition at line 275 of file dtntest.cc.


Public Member Functions

void init_opts ()
 DTNSendCommand ()
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_
SendOpts opts_

Classes

struct  SendOpts

Constructor & Destructor Documentation

DTNSendCommand::DTNSendCommand (  )  [inline]

Definition at line 309 of file dtntest.cc.

References oasys::OptParser::addopt(), DTNSendCommand::SendOpts::block_content_, DTNSendCommand::SendOpts::block_content_len_, DTNSendCommand::SendOpts::block_flags_, DTNSendCommand::SendOpts::block_type_, DTNSendCommand::SendOpts::custody_rcpt_, DTNSendCommand::SendOpts::custody_xfer_, DTNSendCommand::SendOpts::deletion_rcpt_, DTNSendCommand::SendOpts::delivery_rcpt_, DTNSendCommand::SendOpts::dest_, DTNSendCommand::SendOpts::expiration_, DTNSendCommand::SendOpts::forward_rcpt_, opts_, parser_, DTNSendCommand::SendOpts::payload_data_, DTNSendCommand::SendOpts::payload_data_len_, DTNSendCommand::SendOpts::payload_file_, DTNSendCommand::SendOpts::payload_file_len_, DTNSendCommand::SendOpts::priority_, DTNSendCommand::SendOpts::receive_rcpt_, DTNSendCommand::SendOpts::replyto_, and DTNSendCommand::SendOpts::source_.


Member Function Documentation

void DTNSendCommand::init_opts (  )  [inline]

Definition at line 304 of file dtntest.cc.

References DTNSendCommand::SendOpts::expiration_, and opts_.

Referenced by exec().

int DTNSendCommand::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 346 of file dtntest.cc.

References DTNSendCommand::SendOpts::block_content_, DTNSendCommand::SendOpts::block_content_len_, DTNSendCommand::SendOpts::block_flags_, DTNSendCommand::SendOpts::block_type_, dtn_bundle_spec_t::blocks, dtn_bundle_spec_t::blocks_len, dtn_bundle_spec_t::blocks_val, DTNSendCommand::SendOpts::custody_rcpt_, DTNSendCommand::SendOpts::custody_xfer_, dtn_extension_block_t::data, dtn_extension_block_t::data_len, dtn_extension_block_t::data_val, DTNSendCommand::SendOpts::deletion_rcpt_, DTNSendCommand::SendOpts::delivery_rcpt_, dtn_bundle_spec_t::dest, DTNSendCommand::SendOpts::dest_, dtn_bundle_spec_t::dopts, DOPTS_CUSTODY, DOPTS_CUSTODY_RCPT, DOPTS_DELETE_RCPT, DOPTS_DELIVERY_RCPT, DOPTS_FORWARD_RCPT, DOPTS_RECEIVE_RCPT, dtn_copy_eid(), dtn_errno(), DTN_PAYLOAD_FILE, DTN_PAYLOAD_MEM, dtn_send(), dtn_set_payload(), dtn_strerror(), DTN_SUCCESS, dtn_bundle_spec_t::expiration, DTNSendCommand::SendOpts::expiration_, dtn_extension_block_t::flags, DTNSendCommand::SendOpts::forward_rcpt_, init_opts(), opts_, oasys::OptParser::parse(), parser_, DTNSendCommand::SendOpts::payload_data_, DTNSendCommand::SendOpts::payload_data_len_, DTNSendCommand::SendOpts::payload_file_, DTNSendCommand::SendOpts::payload_file_len_, dtn_bundle_spec_t::priority, DTNSendCommand::SendOpts::priority_, DTNSendCommand::SendOpts::receive_rcpt_, dtn_bundle_spec_t::replyto, DTNSendCommand::SendOpts::replyto_, oasys::TclCommand::resultf(), dtn_bundle_spec_t::source, DTNSendCommand::SendOpts::source_, dtn_extension_block_t::type, dtn_endpoint_id_t::uri, and oasys::TclCommand::wrong_num_args().


Member Data Documentation

oasys::OptParser DTNSendCommand::parser_

Definition at line 301 of file dtntest.cc.

Referenced by DTNSendCommand(), and exec().

SendOpts DTNSendCommand::opts_

Definition at line 302 of file dtntest.cc.

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


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