#include <BESSetCommand.h>
Inheritance diagram for BESSetCommand:
Public Member Functions | |
BESSetCommand (const string &cmd) | |
virtual | ~BESSetCommand () |
virtual string | parse_options (BESTokenizer &tokens, BESDataHandlerInterface &dhi) |
virtual BESResponseHandler * | parse_request (BESTokenizer &tokens, BESDataHandlerInterface &dhi) |
parses the request to create a new container or replace an already existing container given a symbolic name, a real name, and a data type. | |
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 38 of file BESSetCommand.h.
BESSetCommand::BESSetCommand | ( | const string & | cmd | ) | [inline] |
Definition at line 43 of file BESSetCommand.h.
virtual BESSetCommand::~BESSetCommand | ( | ) | [inline, virtual] |
Definition at line 45 of file BESSetCommand.h.
string BESSetCommand::parse_options | ( | BESTokenizer & | tokens, | |
BESDataHandlerInterface & | dhi | |||
) | [virtual] |
Reimplemented from BESCommand.
Definition at line 39 of file BESSetCommand.cc.
References _BESDataHandlerInterface::data, BESTokenizer::get_next_token(), and SILENT.
Referenced by parse_request().
Here is the call graph for this function:
BESResponseHandler * BESSetCommand::parse_request | ( | BESTokenizer & | tokenizer, | |
BESDataHandlerInterface & | dhi | |||
) | [virtual] |
parses the request to create a new container or replace an already existing container given a symbolic name, a real name, and a data type.
The syntax for a request handled by this response handler is:
set container values * <sym_name>,<real_name>,<data_type>;
The request must end with a semicolon and must contain the symbolic name, the real name (in most cases a file name), and the type of data represented by this container (e.g. cedar, netcdf, cdf, hdf, etc...).
tokenizer | holds on to the list of tokens to be parsed | |
dhi | structure that holds request and response information |
BESParserException | if there is a problem parsing the request |
Implements BESCommand.
Definition at line 73 of file BESSetCommand.cc.
References BESCommand::_cmd, BESCommand::find_command(), BESTokenizer::parse_error(), parse_options(), BESCommand::parse_request(), and BESCommand::TermCommand.
Here is the call graph for this function:
void BESSetCommand::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 |
Reimplemented from BESCommand.
Definition at line 104 of file BESSetCommand.cc.
References BESCommand::dump(), BESIndent::Indent(), BESIndent::LMarg(), and BESIndent::UnIndent().
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(), parse_request(), BESGetCommand::parse_request(), BESDeleteCommand::parse_request(), and BESDefineCommand::parse_request().
string BESCommand::_cmd [protected, inherited] |
Definition at line 54 of file BESCommand.h.
Referenced by BESCommand::dump(), TestCommand::parse_request(), BESShowCommand::parse_request(), 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, 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(), parse_request(), BESGetCommand::parse_request(), BESDeleteCommand::parse_request(), and BESDefineCommand::parse_request().