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";
72 _str_cmd = (string)
"show " + toadd +
";";
73 BESDEBUG(
"besxml",
"Converted xml element name to command " << _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.
virtual void dump(ostream &strm) const
dumps information about this object
string action
the response object requested, e.g. das, dds