#include <BESCatalogCommand.h>
Inheritance diagram for BESCatalogCommand:
Public Member Functions | |
BESCatalogCommand (const string &cmd) | |
virtual | ~BESCatalogCommand () |
virtual BESResponseHandler * | parse_request (BESTokenizer &tokens, BESDataHandlerInterface &dhi) |
knows how to parse a show catalog request | |
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 BESCommand * | find_command (const string &cmd_str) |
Static Public Attributes | |
static BESCommand * | TermCommand = new BESTermCommand( "term" ) |
Protected Attributes | |
string | _cmd |
BESCatalogCommand::BESCatalogCommand | ( | const string & | cmd | ) | [inline] |
virtual BESCatalogCommand::~BESCatalogCommand | ( | ) | [inline, virtual] |
void BESCommand::add_command | ( | const string & | cmd_str, | |
BESCommand * | cmd | |||
) | [static, inherited] |
bool BESCommand::del_command | ( | const string & | cmd_str | ) | [static, inherited] |
void BESCatalogCommand::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.
BESCommand * BESCommand::find_command | ( | const string & | cmd_str | ) | [static, inherited] |
string BESCommand::parse_options | ( | BESTokenizer & | tokens, | |
BESDataHandlerInterface & | dhi | |||
) | [virtual, inherited] |
Reimplemented in BESDefineCommand, and BESSetCommand.
BESResponseHandler * BESCatalogCommand::parse_request | ( | BESTokenizer & | tokenizer, | |
BESDataHandlerInterface & | dhi | |||
) | [virtual] |
knows how to parse a show catalog request
This class knows how to parse a show catalog request, building a sub response handler that actually knows how to build the requested response object.
A show request looks like:
show catalog [for <container>];
where container is a container in the tree that the user wants look into further, a container returned from a previous show catalog call.
This parse method creates the sub response handler that knows how to create the specified information.
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.
string BESCommand::_cmd [protected, inherited] |
BESCommand * BESCommand::TermCommand = new BESTermCommand( "term" ) [static, inherited] |