59 map<string, string> props ;
63 string err =
"The specified command " + name
64 +
" is not a show command" ;
67 if( name.length() <= 4 )
69 string err =
"The specified command " + name
70 +
" is not an allowed show command" ;
77 _str_cmd = (string)
"show " + toadd +
";" ;
78 BESDEBUG(
"besxml",
"Converted xml element name to command " 96 << (
void *)
this <<
")" << endl ;
BESXMLShowCommand(const BESDataHandlerInterface &base_dhi)
virtual void parse_request(xmlNode *node)
parse any show command.
virtual void dump(ostream &strm) const
dumps information about this object
static string lowercase(const string &s)
Convert a string to all lower case.
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
BESDataHandlerInterface _dhi
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.
static ostream & LMarg(ostream &strm)
Structure storing information used by the BES to handle the request.
virtual void dump(ostream &strm) const
dumps information about this object
static BESXMLCommand * CommandBuilder(const BESDataHandlerInterface &base_dhi)
#define BESDEBUG(x, y)
macro used to send debug information to the debug stream
string action
the response object requested, e.g.