#include <BESXMLSetContextCommand.h>
Public Member Functions | |
BESXMLSetContextCommand (const BESDataHandlerInterface &base_dhi) | |
virtual void | dump (ostream &strm) const |
dumps information about this object | |
virtual BESDataHandlerInterface & | get_dhi () |
virtual bool | has_response () |
virtual void | parse_request (xmlNode *node) |
parse a show command. | |
virtual void | prep_request () |
virtual | ~BESXMLSetContextCommand () |
Static Public Member Functions | |
static void | add_command (const string &cmd_str, p_xmlcmd_builder cmd) |
static BESXMLCommand * | CommandBuilder (const BESDataHandlerInterface &base_dhi) |
static bool | del_command (const string &cmd_str) |
static p_xmlcmd_builder | find_command (const string &cmd_str) |
Protected Member Functions | |
virtual void | set_response () |
Protected Attributes | |
BESDataHandlerInterface | _dhi |
string | _str_cmd |
Definition at line 39 of file BESXMLSetContextCommand.h.
BESXMLSetContextCommand::BESXMLSetContextCommand | ( | const BESDataHandlerInterface & | base_dhi | ) |
Definition at line 41 of file BESXMLSetContextCommand.cc.
Referenced by CommandBuilder().
virtual BESXMLSetContextCommand::~BESXMLSetContextCommand | ( | ) | [inline, virtual] |
Definition at line 43 of file BESXMLSetContextCommand.h.
void BESXMLCommand::add_command | ( | const string & | cmd_str, | |
p_xmlcmd_builder | cmd | |||
) | [static, inherited] |
Definition at line 60 of file BESXMLCommand.cc.
Referenced by SampleModule::initialize(), BESXMLDefaultCommands::initialize(), and BESXMLDapCommandModule::initialize().
BESXMLCommand * BESXMLSetContextCommand::CommandBuilder | ( | const BESDataHandlerInterface & | base_dhi | ) | [static] |
Definition at line 109 of file BESXMLSetContextCommand.cc.
References BESXMLSetContextCommand().
Referenced by BESXMLDefaultCommands::initialize().
bool BESXMLCommand::del_command | ( | const string & | cmd_str | ) | [static, inherited] |
Definition at line 66 of file BESXMLCommand.cc.
Referenced by SampleModule::terminate(), BESXMLDefaultCommands::terminate(), and BESXMLDapCommandModule::terminate().
void BESXMLSetContextCommand::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 BESXMLCommand.
Definition at line 99 of file BESXMLSetContextCommand.cc.
References BESIndent::Indent(), BESIndent::LMarg(), and BESIndent::UnIndent().
p_xmlcmd_builder BESXMLCommand::find_command | ( | const string & | cmd_str | ) | [static, inherited] |
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, inherited] |
Reimplemented in BESXMLGetCommand.
Definition at line 67 of file BESXMLCommand.h.
References BESXMLCommand::_dhi.
Referenced by BESXMLInterface::build_data_request_plan(), BESXMLInterface::clean(), and BESXMLGetCommand::get_dhi().
virtual bool BESXMLSetContextCommand::has_response | ( | ) | [inline, virtual] |
Implements BESXMLCommand.
Definition at line 47 of file BESXMLSetContextCommand.h.
void BESXMLSetContextCommand::parse_request | ( | xmlNode * | node | ) | [virtual] |
parse a show command.
No properties or children elements
<cmd1.1 prop1=\"prop1val\"> \ <element1>element1val</element1> \ <element2 prop2.1=\"prop2.1val\">element2val</element2> \ </cmd1.1> \
node | xml2 element node pointer |
Implements BESXMLCommand.
Definition at line 56 of file BESXMLSetContextCommand.cc.
References BESXMLCommand::_dhi, BESXMLCommand::_str_cmd, BESDataHandlerInterface::action, CONTEXT_NAME, CONTEXT_VALUE, BESDataHandlerInterface::data, BESXMLUtils::GetNodeInfo(), SET_CONTEXT, SET_CONTEXT_STR, and BESXMLCommand::set_response().
virtual void BESXMLCommand::prep_request | ( | ) | [inline, virtual, inherited] |
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, inherited] |
Definition at line 46 of file BESXMLCommand.cc.
References BESXMLCommand::_dhi, BESXMLCommand::_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(), 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, inherited] |
Definition at line 57 of file BESXMLCommand.h.
Referenced by BESXMLCommand::BESXMLCommand(), BESXMLGetCommand::get_dhi(), BESXMLCommand::get_dhi(), BESXMLGetCommand::parse_basic_get(), SampleSayXMLCommand::parse_request(), BESXMLShowCommand::parse_request(), 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 BESXMLCommand::set_response().
string BESXMLCommand::_str_cmd [protected, inherited] |
Definition at line 59 of file BESXMLCommand.h.
Referenced by BESXMLGetCommand::parse_basic_get(), BESXMLShowCommand::parse_request(), parse_request(), BESXMLSetContainerCommand::parse_request(), BESXMLGetCommand::parse_request(), BESXMLDeleteDefinitionsCommand::parse_request(), BESXMLDeleteDefinitionCommand::parse_request(), BESXMLDeleteContainersCommand::parse_request(), BESXMLDeleteContainerCommand::parse_request(), BESXMLDefineCommand::parse_request(), and BESXMLCommand::set_response().