35#include "BESXMLDeleteDefinitionsCommand.h"
36#include "BESDefinitionStorageList.h"
37#include "BESDataNames.h"
38#include "BESResponseNames.h"
39#include "BESXMLUtils.h"
41#include "BESSyntaxUserError.h"
64 map<string, string> props;
66 if (name != DELETE_DEFINITIONS_STR) {
67 string err =
"The specified command " + name +
" is not a delete definitions command";
72 string storage = props[
"space"];
73 d_xmlcmd_dhi.data[STORE_NAME] = storage;
74 if (d_xmlcmd_dhi.data[STORE_NAME].empty()) {
75 d_xmlcmd_dhi.data[STORE_NAME] = DEFAULT;
79 d_xmlcmd_dhi.action = DELETE_DEFINITIONS;
81 d_cmd_log_info = (string)
"delete definitions from " + storage +
";";
96 strm << BESIndent::LMarg <<
"BESXMLDeleteDefinitionsCommand::dump - (" << (
void *)
this <<
")" << endl;
99 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 parse_request(xmlNode *node)
parse a delete definitions command.
virtual void dump(std::ostream &strm) const
dumps information about this object
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