33 #include "BESXMLSetContextCommand.h" 34 #include "BESXMLUtils.h" 36 #include "BESResponseNames.h" 37 #include "BESDataNames.h" 38 #include "BESSyntaxUserError.h" 57 map<string, string> props;
59 if (action != SET_CONTEXT_STR) {
60 string err =
"The specified command " + action +
" is not a set context command";
64 d_xmlcmd_dhi.
action = SET_CONTEXT;
68 string err = action +
" command: name property missing";
72 string err = action +
" command: context value missing";
75 d_xmlcmd_dhi.
data[CONTEXT_NAME] = name;
76 d_xmlcmd_dhi.
data[CONTEXT_VALUE] = value;
77 d_cmd_log_info = (string)
"set context " + name +
" to " + value +
";";
92 strm << BESIndent::LMarg <<
"BESXMLSetContextCommand::dump - (" << (
void *)
this <<
")" << endl;
95 BESIndent::UnIndent();
virtual void dump(ostream &strm) const
dumps information about this object
virtual void parse_request(xmlNode *node)
parse a set context command.
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.
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.
string action
the response object requested, e.g. das, dds
std::string d_cmd_log_info
Used only for the log.