BESCommand Class Reference

#include <BESCommand.h>

Inheritance diagram for BESCommand:

Inheritance graph
[legend]
Collaboration diagram for BESCommand:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 BESCommand (const string &cmd)
virtual ~BESCommand ()
virtual string parse_options (BESTokenizer &tokens, BESDataHandlerInterface &dhi)
virtual BESResponseHandlerparse_request (BESTokenizer &tokens, BESDataHandlerInterface &dhi)=0
virtual void dump (ostream &strm) const
 dumps information about this object

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

Protected Attributes

string _cmd

Detailed Description

Definition at line 48 of file BESCommand.h.


Constructor & Destructor Documentation

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

Definition at line 56 of file BESCommand.h.

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

Definition at line 58 of file BESCommand.h.


Member Function Documentation

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

Reimplemented in BESDefineCommand, and BESSetCommand.

Definition at line 39 of file BESCommand.cc.

References BESTokenizer::get_next_token().

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

Here is the call graph for this function:

virtual BESResponseHandler* BESCommand::parse_request ( BESTokenizer tokens,
BESDataHandlerInterface dhi 
) [pure virtual]

Implemented in BESCatalogCommand, BESDefineCommand, BESDelContainerCommand, BESDelContainersCommand, BESDelDefCommand, BESDelDefsCommand, BESDeleteCommand, BESGetCommand, BESSetCommand, BESSetContainerCommand, BESSetContextCommand, BESShowCommand, and BESTermCommand.

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

void BESCommand::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

Implements BESObj.

Reimplemented in BESCatalogCommand, BESDefineCommand, BESDelContainerCommand, BESDelContainersCommand, BESDelDefCommand, BESDelDefsCommand, BESDeleteCommand, BESGetCommand, BESSetCommand, BESSetContainerCommand, BESSetContextCommand, BESShowCommand, and BESTermCommand.

Definition at line 87 of file BESCommand.cc.

References _cmd, BESIndent::Indent(), BESIndent::LMarg(), and BESIndent::UnIndent().

Referenced by BESTermCommand::dump(), BESShowCommand::dump(), BESSetContextCommand::dump(), BESSetContainerCommand::dump(), BESSetCommand::dump(), BESGetCommand::dump(), BESDeleteCommand::dump(), BESDelDefsCommand::dump(), BESDelDefCommand::dump(), BESDelContainersCommand::dump(), BESDelContainerCommand::dump(), BESDefineCommand::dump(), and BESCatalogCommand::dump().

Here is the call graph for this function:

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

Definition at line 49 of file BESCommand.cc.

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

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

Definition at line 55 of file BESCommand.cc.

References TermCommand.

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

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

Definition at line 75 of file BESCommand.cc.

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


Member Data Documentation

string BESCommand::_cmd [protected]

Definition at line 54 of file BESCommand.h.

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

BESCommand * BESCommand::TermCommand [static]

Definition at line 68 of file BESCommand.h.

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


The documentation for this class was generated from the following files:
Generated on Tue Mar 4 23:18:16 2008 for OPeNDAP Back End Server (BES) by  doxygen 1.5.1