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 = new BESTermCommand( "term" )

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 TestCommand::parse_request(), 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 TestCommand, BESCatalogCommand, BESDefineCommand, BESDelContainerCommand, BESDelContainersCommand, BESDelDefCommand, BESDelDefsCommand, BESDeleteCommand, BESGetCommand, BESSetCommand, BESSetContainerCommand, BESSetContextCommand, BESShowCommand, and BESTermCommand.

Referenced by BESCmdParser::parse(), TestCommand::parse_request(), 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 TestCommand, BESCatalogCommand, BESDefineCommand, BESDelContainerCommand, BESDelContainersCommand, BESDelDefCommand, BESDelDefsCommand, BESDeleteCommand, BESGetCommand, BESSetCommand, BESSetContainerCommand, BESSetContextCommand, BESShowCommand, and BESTermCommand.

Definition at line 88 of file BESCommand.cc.

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

Referenced by TestCommand::dump(), 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 50 of file BESCommand.cc.

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

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

Definition at line 56 of file BESCommand.cc.

References TermCommand.

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

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

Definition at line 76 of file BESCommand.cc.

Referenced by BESCmdParser::parse(), TestCommand::parse_request(), 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(), TestCommand::parse_request(), 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 = new BESTermCommand( "term" ) [static]

Definition at line 68 of file BESCommand.h.

Referenced by del_command(), TestModule::initialize(), DAPCommandModule::initialize(), BESDefaultCommands::initialize(), TestCommand::parse_request(), 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 Wed Aug 29 03:02:16 2007 for OPeNDAP Back End Server (BES) by  doxygen 1.5.2