35#include "BESXMLShowCommand.h"
36#include "BESXMLUtils.h"
38#include "BESSyntaxUserError.h"
65 map<string, string> props;
68 string err =
"The specified command " + name +
" is not a show command";
71 if (name.size() <= 4) {
72 string err =
"The specified command " + name +
" is not an allowed show command";
76 d_xmlcmd_dhi.action =
"show.";
78 d_xmlcmd_dhi.action += toadd;
80 BESDEBUG(
"besxml",
"Converted xml element name to command " << d_xmlcmd_dhi.action << endl);
95 strm << BESIndent::LMarg <<
"BESXMLShowCommand::dump - (" << (
void *)
this <<
")" << endl;
98 BESIndent::UnIndent();
Structure storing information used by the BES to handle the request.
error thrown if there is a user syntax error in the request or any other user error
static std::string lowercase(const std::string &s)
Base class for the BES's commands.
virtual void dump(std::ostream &strm) const
dumps information about this object
virtual void set_response()
The request has been parsed, use the command action name to set the response handler.
std::string d_cmd_log_info
Used only for the log.
virtual void parse_request(xmlNode *node)
parse any show command. No sub-elements or properties are defined
virtual void dump(std::ostream &strm) const
dumps information about this object
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