33 #include "BESXMLDeleteDefinitionCommand.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_DEFINITION_STR) {
60 string err =
"The specified command " + name +
" is not a delete definition command";
64 string def_name = props[
"name"];
65 if (def_name.empty()) {
66 string err = name +
" command: Must specify the definition to delete";
69 _dhi.
data[DEF_NAME] = def_name;
72 string storage = props[
"space"];
73 _dhi.
data[STORE_NAME] = storage;
74 if (_dhi.
data[STORE_NAME].empty()) {
75 _dhi.
data[STORE_NAME] = PERSISTENCE_VOLATILE;
76 storage = PERSISTENCE_VOLATILE;
79 _dhi.
action = DELETE_DEFINITION;
81 _str_cmd = (string)
"delete definition " + def_name +
" from " + storage +
";";
96 strm << BESIndent::LMarg <<
"BESXMLDeleteDefinitionCommand::dump - (" << (
void *)
this <<
")" << endl;
99 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 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.
virtual void parse_request(xmlNode *node)
parse a delete definition command.
string action
the response object requested, e.g. das, dds
virtual void dump(ostream &strm) const
dumps information about this object