bes
Updated for version 3.20.6
|
33 #include "BESXMLDeleteDefinitionCommand.h"
34 #include "BESDefinitionStorageList.h"
35 #include "BESDataNames.h"
36 #include "BESResponseNames.h"
37 #include "BESXMLUtils.h"
39 #include "BESSyntaxUserError.h"
62 map<string, string> props;
64 if (name != DELETE_DEFINITION_STR) {
65 string err =
"The specified command " + name +
" is not a delete definition command";
69 string def_name = props[
"name"];
70 if (def_name.empty()) {
71 string err = name +
" command: Must specify the definition to delete";
74 d_xmlcmd_dhi.
data[DEF_NAME] = def_name;
77 string storage = props[
"space"];
78 d_xmlcmd_dhi.
data[STORE_NAME] = storage;
79 if (d_xmlcmd_dhi.
data[STORE_NAME].empty()) {
80 d_xmlcmd_dhi.
data[STORE_NAME] = DEFAULT;
84 d_xmlcmd_dhi.
action = DELETE_DEFINITION;
86 d_cmd_log_info = (string)
"delete definition " + def_name +
" from " + storage +
";";
101 strm << BESIndent::LMarg <<
"BESXMLDeleteDefinitionCommand::dump - (" << (
void *)
this <<
")" << endl;
104 BESIndent::UnIndent();
std::string d_cmd_log_info
Used only for the log.
std::string action
the response object requested, e.g. das, dds
virtual void set_response()
The request has been parsed, use the command action name to set the response handler.
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
virtual void dump(std::ostream &strm) const
dumps information about this object
error thrown if there is a user syntax error in the request or any other user error
std::map< std::string, std::string > data
the map of string data that will be required for the current request.
Base class for the BES's commands.
virtual void parse_request(xmlNode *node)
parse a delete definition command.
Structure storing information used by the BES to handle the request.