58 map<string, string> props ;
62 string err =
"The specified command " + action
63 +
" is not a set context command" ;
69 name = props[
"name"] ;
72 string err = action +
" command: name property missing" ;
77 string err = action +
" command: context value missing" ;
82 _str_cmd = (string)
"set context " + name +
" to " + value +
";" ;
99 << (
void *)
this <<
")" << endl ;
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
BESXMLSetContextCommand(const BESDataHandlerInterface &base_dhi)
BESDataHandlerInterface _dhi
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.
static ostream & LMarg(ostream &strm)
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.
static BESXMLCommand * CommandBuilder(const BESDataHandlerInterface &base_dhi)