BESDeleteCommand Class Reference

#include <BESDeleteCommand.h>

Inheritance diagram for BESDeleteCommand:

Inheritance graph
[legend]
Collaboration diagram for BESDeleteCommand:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 BESDeleteCommand (const string &cmd)
virtual ~BESDeleteCommand ()
virtual BESResponseHandlerparse_request (BESTokenizer &tokens, BESDataHandlerInterface &dhi)
 parses the request to delete something
virtual void dump (ostream &strm) const
 dumps information about this object
virtual string parse_options (BESTokenizer &tokens, BESDataHandlerInterface &dhi)

Static Public Member Functions

static void add_command (const string &cmd_str, BESCommand *cmd)
static bool del_command (const string &cmd_str)
static BESCommandfind_command (const string &cmd_str)

Static Public Attributes

static BESCommandTermCommand = new BESTermCommand( "term" )

Protected Attributes

string _cmd

Detailed Description

Definition at line 38 of file BESDeleteCommand.h.


Constructor & Destructor Documentation

BESDeleteCommand::BESDeleteCommand ( const string &  cmd  )  [inline]

Definition at line 43 of file BESDeleteCommand.h.

virtual BESDeleteCommand::~BESDeleteCommand (  )  [inline, virtual]

Definition at line 45 of file BESDeleteCommand.h.


Member Function Documentation

BESResponseHandler * BESDeleteCommand::parse_request ( BESTokenizer tokenizer,
BESDataHandlerInterface dhi 
) [virtual]

parses the request to delete something

This command requires a sub command to complete the parsing of the command. You can not just have a command to delete. For example, the command 'delete container <container_name>;' looks for a sub command with the name 'delete.container' to complete parsing the command.

And remember to terminate all commands with a semicolon (;)

Parameters:
tokenizer holds on to the list of tokens to be parsed
dhi structure that holds request and response information
Exceptions:
BESParserException if there is a problem parsing the request
See also:
BESTokenizer

_BESDataHandlerInterface

Implements BESCommand.

Definition at line 58 of file BESDeleteCommand.cc.

References BESCommand::_cmd, BESCommand::find_command(), BESTokenizer::parse_error(), BESCommand::parse_options(), BESCommand::parse_request(), and BESCommand::TermCommand.

Here is the call graph for this function:

void BESDeleteCommand::dump ( ostream &  strm  )  const [virtual]

dumps information about this object

Displays the pointer value of this instance

Parameters:
strm C++ i/o stream to dump the information to

Reimplemented from BESCommand.

Definition at line 88 of file BESDeleteCommand.cc.

References BESCommand::dump(), BESIndent::Indent(), BESIndent::LMarg(), and BESIndent::UnIndent().

Here is the call graph for this function:

string BESCommand::parse_options ( BESTokenizer tokens,
BESDataHandlerInterface dhi 
) [virtual, inherited]

Reimplemented in BESDefineCommand, and BESSetCommand.

Definition at line 39 of file BESCommand.cc.

References BESTokenizer::get_next_token().

Referenced by TestCommand::parse_request(), BESShowCommand::parse_request(), BESGetCommand::parse_request(), parse_request(), and BESCatalogCommand::parse_request().

Here is the call graph for this function:

void BESCommand::add_command ( const string &  cmd_str,
BESCommand cmd 
) [static, inherited]

Definition at line 50 of file BESCommand.cc.

Referenced by TestModule::initialize(), DAPCommandModule::initialize(), and BESDefaultCommands::initialize().

bool BESCommand::del_command ( const string &  cmd_str  )  [static, inherited]

Definition at line 56 of file BESCommand.cc.

References BESCommand::TermCommand.

Referenced by TestModule::terminate(), DAPCommandModule::terminate(), and BESDefaultCommands::terminate().

BESCommand * BESCommand::find_command ( const string &  cmd_str  )  [static, inherited]

Definition at line 76 of file BESCommand.cc.

Referenced by BESCmdParser::parse(), TestCommand::parse_request(), BESShowCommand::parse_request(), BESSetCommand::parse_request(), BESGetCommand::parse_request(), parse_request(), and BESDefineCommand::parse_request().


Member Data Documentation

string BESCommand::_cmd [protected, inherited]

Definition at line 54 of file BESCommand.h.

Referenced by BESCommand::dump(), TestCommand::parse_request(), BESShowCommand::parse_request(), BESSetCommand::parse_request(), BESGetCommand::parse_request(), parse_request(), BESDelDefsCommand::parse_request(), BESDelDefCommand::parse_request(), BESDelContainersCommand::parse_request(), BESDelContainerCommand::parse_request(), BESDefineCommand::parse_request(), and BESCatalogCommand::parse_request().

BESCommand * BESCommand::TermCommand = new BESTermCommand( "term" ) [static, inherited]

Definition at line 68 of file BESCommand.h.

Referenced by BESCommand::del_command(), TestModule::initialize(), DAPCommandModule::initialize(), BESDefaultCommands::initialize(), TestCommand::parse_request(), BESShowCommand::parse_request(), BESSetCommand::parse_request(), BESGetCommand::parse_request(), parse_request(), and BESDefineCommand::parse_request().


The documentation for this class was generated from the following files:
Generated on Wed Aug 29 03:28:54 2007 for OPeNDAP Back End Server (BES) by  doxygen 1.5.2