33 #include "BESXMLDeleteDefinitionsCommand.h" 34 #include "BESDefinitionStorageList.h" 35 #include "BESDataNames.h" 36 #include "BESResponseNames.h" 37 #include "BESXMLUtils.h" 39 #include "BESSyntaxUserError.h" 57 map<string, string> props;
59 if (name != DELETE_DEFINITIONS_STR) {
60 string err =
"The specified command " + name +
" is not a delete definitions command";
65 string storage = props[
"space"];
66 _dhi.
data[STORE_NAME] = storage;
67 if (_dhi.
data[STORE_NAME].empty()) {
68 _dhi.
data[STORE_NAME] = PERSISTENCE_VOLATILE;
69 storage = PERSISTENCE_VOLATILE;
72 _dhi.
action = DELETE_DEFINITIONS;
74 _str_cmd = (string)
"delete definitions from " + storage +
";";
89 strm << BESIndent::LMarg <<
"BESXMLDeleteDefinitionsCommand::dump - (" << (
void *)
this <<
")" << endl;
92 BESIndent::UnIndent();
virtual void dump(ostream &strm) const
dumps information about this object
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.
virtual void parse_request(xmlNode *node)
parse a delete definitions command.
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