#include <BESCommand.h>


Public Member Functions | |
| BESCommand (const string &cmd) | |
| virtual | ~BESCommand () |
| virtual string | parse_options (BESTokenizer &tokens, BESDataHandlerInterface &dhi) |
| virtual BESResponseHandler * | parse_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 BESCommand * | find_command (const string &cmd_str) |
Static Public Attributes | |
| static BESCommand * | TermCommand = new BESTermCommand( "term" ) |
Protected Attributes | |
| string | _cmd |
Definition at line 48 of file BESCommand.h.
| 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.
| 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().

| 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, BESTermCommand, and OPENDAP_CLASSOPENDAP_COMMANDCommand.
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
| 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, BESTermCommand, and OPENDAP_CLASSOPENDAP_COMMANDCommand.
Definition at line 87 of file BESCommand.cc.
References _cmd, BESIndent::Indent(), BESIndent::LMarg(), and BESIndent::UnIndent().
Referenced by TestCommand::dump(), OPENDAP_CLASSOPENDAP_COMMANDCommand::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().

| void BESCommand::add_command | ( | const string & | cmd_str, | |
| BESCommand * | cmd | |||
| ) | [static] |
Definition at line 49 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 55 of file BESCommand.cc.
Referenced by TestModule::terminate(), 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(), TestCommand::parse_request(), BESShowCommand::parse_request(), BESSetCommand::parse_request(), BESGetCommand::parse_request(), BESDeleteCommand::parse_request(), and BESDefineCommand::parse_request().
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 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().
1.5.4