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