#include <BESXMLCommand.h>
Public Member Functions | |
virtual void | dump (ostream &strm) const |
dumps information about this object | |
virtual BESDataHandlerInterface & | get_dhi () |
virtual bool | has_response ()=0 |
virtual void | parse_request (xmlNode *node)=0 |
virtual void | prep_request () |
virtual | ~BESXMLCommand () |
Static Public Member Functions | |
static void | add_command (const string &cmd_str, p_xmlcmd_builder cmd) |
static bool | del_command (const string &cmd_str) |
static p_xmlcmd_builder | find_command (const string &cmd_str) |
Protected Member Functions | |
BESXMLCommand (const BESDataHandlerInterface &base_dhi) | |
virtual void | set_response () |
Protected Attributes | |
BESDataHandlerInterface | _dhi |
string | _str_cmd |
Definition at line 51 of file BESXMLCommand.h.
BESXMLCommand::BESXMLCommand | ( | const BESDataHandlerInterface & | base_dhi | ) | [protected] |
Definition at line 40 of file BESXMLCommand.cc.
References _dhi, and BESDataHandlerInterface::make_copy().
virtual BESXMLCommand::~BESXMLCommand | ( | ) | [inline, virtual] |
Definition at line 62 of file BESXMLCommand.h.
void BESXMLCommand::add_command | ( | const string & | cmd_str, | |
p_xmlcmd_builder | cmd | |||
) | [static] |
Definition at line 60 of file BESXMLCommand.cc.
Referenced by SampleModule::initialize(), BESXMLDefaultCommands::initialize(), and BESXMLDapCommandModule::initialize().
bool BESXMLCommand::del_command | ( | const string & | cmd_str | ) | [static] |
Definition at line 66 of file BESXMLCommand.cc.
Referenced by SampleModule::terminate(), BESXMLDefaultCommands::terminate(), and BESXMLDapCommandModule::terminate().
void BESXMLCommand::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 SampleSayXMLCommand, BESXMLCatalogCommand, BESXMLDefineCommand, BESXMLDeleteContainerCommand, BESXMLDeleteContainersCommand, BESXMLDeleteDefinitionCommand, BESXMLDeleteDefinitionsCommand, BESXMLGetCommand, BESXMLSetContainerCommand, BESXMLSetContextCommand, and BESXMLShowCommand.
Definition at line 91 of file BESXMLCommand.cc.
References BESIndent::Indent(), BESIndent::LMarg(), and BESIndent::UnIndent().
Referenced by BESXMLInterface::dump().
p_xmlcmd_builder BESXMLCommand::find_command | ( | const string & | cmd_str | ) | [static] |
Definition at line 79 of file BESXMLCommand.cc.
Referenced by BESXMLInterface::build_data_request_plan(), and BESXMLGetCommand::parse_request().
virtual BESDataHandlerInterface& BESXMLCommand::get_dhi | ( | ) | [inline, virtual] |
Reimplemented in BESXMLGetCommand.
Definition at line 67 of file BESXMLCommand.h.
References _dhi.
Referenced by BESXMLInterface::build_data_request_plan(), BESXMLInterface::clean(), and BESXMLGetCommand::get_dhi().
virtual bool BESXMLCommand::has_response | ( | ) | [pure virtual] |
Implemented in SampleSayXMLCommand, BESXMLCatalogCommand, BESXMLDefineCommand, BESXMLDeleteContainerCommand, BESXMLDeleteContainersCommand, BESXMLDeleteDefinitionCommand, BESXMLDeleteDefinitionsCommand, BESXMLGetCommand, BESXMLSetContainerCommand, BESXMLSetContextCommand, and BESXMLShowCommand.
Referenced by BESXMLInterface::build_data_request_plan().
virtual void BESXMLCommand::parse_request | ( | xmlNode * | node | ) | [pure virtual] |
Implemented in SampleSayXMLCommand, BESXMLCatalogCommand, BESXMLDefineCommand, BESXMLDeleteContainerCommand, BESXMLDeleteContainersCommand, BESXMLDeleteDefinitionCommand, BESXMLDeleteDefinitionsCommand, BESXMLGetCommand, BESXMLSetContainerCommand, BESXMLSetContextCommand, and BESXMLShowCommand.
Referenced by BESXMLInterface::build_data_request_plan(), and BESXMLGetCommand::parse_request().
virtual void BESXMLCommand::prep_request | ( | ) | [inline, virtual] |
Reimplemented in SampleSayXMLCommand, BESXMLDefineCommand, and BESXMLGetCommand.
Definition at line 66 of file BESXMLCommand.h.
Referenced by BESXMLGetCommand::prep_request().
void BESXMLCommand::set_response | ( | ) | [protected, virtual] |
Definition at line 46 of file BESXMLCommand.cc.
References _dhi, _str_cmd, BESDataHandlerInterface::action, BESDataHandlerInterface::data, DATA_REQUEST, BESResponseHandlerList::find_handler(), BESDataHandlerInterface::response_handler, and BESResponseHandlerList::TheList().
Referenced by SampleSayXMLCommand::parse_request(), BESXMLShowCommand::parse_request(), BESXMLSetContextCommand::parse_request(), BESXMLSetContainerCommand::parse_request(), BESXMLGetCommand::parse_request(), BESXMLDeleteDefinitionsCommand::parse_request(), BESXMLDeleteDefinitionCommand::parse_request(), BESXMLDeleteContainersCommand::parse_request(), BESXMLDeleteContainerCommand::parse_request(), BESXMLDefineCommand::parse_request(), and BESXMLCatalogCommand::parse_request().
BESDataHandlerInterface BESXMLCommand::_dhi [protected] |
Definition at line 57 of file BESXMLCommand.h.
Referenced by BESXMLCommand(), BESXMLGetCommand::get_dhi(), get_dhi(), BESXMLGetCommand::parse_basic_get(), SampleSayXMLCommand::parse_request(), BESXMLShowCommand::parse_request(), BESXMLSetContextCommand::parse_request(), BESXMLSetContainerCommand::parse_request(), BESXMLGetCommand::parse_request(), BESXMLDeleteDefinitionsCommand::parse_request(), BESXMLDeleteDefinitionCommand::parse_request(), BESXMLDeleteContainersCommand::parse_request(), BESXMLDeleteContainerCommand::parse_request(), BESXMLDefineCommand::parse_request(), BESXMLCatalogCommand::parse_request(), BESXMLGetCommand::prep_request(), BESXMLDefineCommand::prep_request(), and set_response().
string BESXMLCommand::_str_cmd [protected] |
Definition at line 59 of file BESXMLCommand.h.
Referenced by BESXMLGetCommand::parse_basic_get(), BESXMLShowCommand::parse_request(), BESXMLSetContextCommand::parse_request(), BESXMLSetContainerCommand::parse_request(), BESXMLGetCommand::parse_request(), BESXMLDeleteDefinitionsCommand::parse_request(), BESXMLDeleteDefinitionCommand::parse_request(), BESXMLDeleteContainersCommand::parse_request(), BESXMLDeleteContainerCommand::parse_request(), BESXMLDefineCommand::parse_request(), and set_response().