33 #include "BESXMLShowErrorCommand.h" 34 #include "BESXMLUtils.h" 36 #include "BESResponseNames.h" 37 #include "BESDataNames.h" 38 #include "BESSyntaxUserError.h" 64 map<string, string> props;
66 if (action != SHOW_ERROR_STR) {
67 string err =
"The specified command " + action +
" is not a show error command";
71 d_xmlcmd_dhi.
action = SHOW_ERROR;
73 etype = props[
"type"];
75 string err = action +
" command: error type property missing";
79 d_xmlcmd_dhi.
data[SHOW_ERROR_TYPE] = etype;
95 strm << BESIndent::LMarg <<
"BESXMLShowErrorCommand::dump - (" << (
void *)
this <<
")" << endl;
98 BESIndent::UnIndent();
virtual void dump(ostream &strm) const
dumps information about this object
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 dump(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.
virtual void parse_request(xmlNode *node)
parse a set context command.
Structure storing information used by the BES to handle the request.
map< string, string > data
the map of string data that will be required for the current request.
Base class for the BES's commands.
string action
the response object requested, e.g. das, dds
std::string d_cmd_log_info
Used only for the log.