35#include "BESXMLSetContextCommand.h"
36#include "BESXMLUtils.h"
38#include "BESResponseNames.h"
39#include "BESDataNames.h"
40#include "BESSyntaxUserError.h"
64 map<string, string> props;
66 if (action != SET_CONTEXT_STR) {
67 string err =
"The specified command " + action +
" is not a set context command";
73 string err = action +
" command: name property missing";
77 string err = action +
" command: context value missing";
80 d_xmlcmd_dhi.data[CONTEXT_NAME] = name;
81 d_xmlcmd_dhi.data[CONTEXT_VALUE] = value;
82 d_cmd_log_info = (string)
"set context " + name +
" to " + value +
";";
84 d_xmlcmd_dhi.action = SET_CONTEXT;
99 strm << BESIndent::LMarg <<
"BESXMLSetContextCommand::dump - (" << (
void *)
this <<
")" << endl;
102 BESIndent::UnIndent();
Structure storing information used by the BES to handle the request.
error thrown if there is a user syntax error in the request or any other user error
Base class for the BES's commands.
virtual void dump(std::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.
std::string d_cmd_log_info
Used only for the log.
virtual void dump(std::ostream &strm) const
dumps information about this object
virtual void parse_request(xmlNode *node)
parse a set context command.
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