bes
Updated for version 3.20.6
|
33 #include "BESXMLShowErrorCommand.h"
34 #include "BESXMLUtils.h"
36 #include "BESResponseNames.h"
37 #include "BESDataNames.h"
38 #include "BESSyntaxUserError.h"
69 map<string, string> props;
71 if (action != SHOW_ERROR_STR) {
72 string err =
"The specified command " + action +
" is not a show error command";
76 d_xmlcmd_dhi.
action = SHOW_ERROR;
78 etype = props[
"type"];
80 string err = action +
" command: error type property missing";
84 d_xmlcmd_dhi.
data[SHOW_ERROR_TYPE] = etype;
100 strm << BESIndent::LMarg <<
"BESXMLShowErrorCommand::dump - (" << (
void *)
this <<
")" << endl;
103 BESIndent::UnIndent();
std::string d_cmd_log_info
Used only for the log.
std::string action
the response object requested, e.g. das, dds
virtual void set_response()
The request has been parsed, use the command action name to set the response handler.
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
virtual void parse_request(xmlNode *node)
parse a set context command.
virtual void dump(std::ostream &strm) const
dumps information about this object
virtual void dump(std::ostream &strm) const
dumps information about this object
error thrown if there is a user syntax error in the request or any other user error
std::map< std::string, std::string > data
the map of string data that will be required for the current request.
Base class for the BES's commands.
Structure storing information used by the BES to handle the request.