bes
Updated for version 3.20.6
|
33 #include "BESXMLShowCommand.h"
34 #include "BESXMLUtils.h"
36 #include "BESSyntaxUserError.h"
63 map<string, string> props;
66 string err =
"The specified command " + name +
" is not a show command";
69 if (name.length() <= 4) {
70 string err =
"The specified command " + name +
" is not an allowed show command";
74 d_xmlcmd_dhi.
action =
"show.";
76 d_xmlcmd_dhi.
action += toadd;
78 BESDEBUG(
"besxml",
"Converted xml element name to command " << d_xmlcmd_dhi.
action << endl);
93 strm << BESIndent::LMarg <<
"BESXMLShowCommand::dump - (" << (
void *)
this <<
")" << endl;
96 BESIndent::UnIndent();
virtual void parse_request(xmlNode *node)
parse any show command. No sub-elements or properties are defined
std::string d_cmd_log_info
Used only for the log.
std::string action
the response object requested, e.g. das, dds
virtual void set_response()
The request has been parsed, use the command action name to set the response handler.
static void GetNodeInfo(xmlNode *node, std::string &name, std::string &value, std::map< std::string, std::string > &props)
get the name, value if any, and any properties for the specified node
virtual void dump(std::ostream &strm) const
dumps information about this object
virtual void dump(std::ostream &strm) const
dumps information about this object
error thrown if there is a user syntax error in the request or any other user error
Base class for the BES's commands.
static std::string lowercase(const std::string &s)
Structure storing information used by the BES to handle the request.