33 #include "BESXMLCatalogCommand.h" 34 #include "BESContainerStorageList.h" 36 #include "BESDataNames.h" 37 #include "BESXMLUtils.h" 39 #include "BESSyntaxUserError.h" 57 map<string, string> props;
59 if (name != CATALOG_RESPONSE_STR && name != SHOW_INFO_RESPONSE_STR) {
60 string err =
"The specified command " + name +
" is not a show catalog or show info command";
65 _dhi.action = CATALOG_RESPONSE;
69 if (name == CATALOG_RESPONSE_STR) {
70 _dhi.data[CATALOG_OR_INFO] = CATALOG_RESPONSE;
71 _str_cmd =
"show catalog";
74 _dhi.data[CATALOG_OR_INFO] = SHOW_INFO_RESPONSE;
75 _str_cmd =
"show info";
79 _dhi.data[CONTAINER] = props[
"node"];
80 if (!_dhi.data[CONTAINER].empty()) {
81 _str_cmd +=
" for " + _dhi.data[CONTAINER];
98 strm << BESIndent::LMarg <<
"BESXMLCatalogCommand::dump - (" << (
void *)
this <<
")" << endl;
101 BESIndent::UnIndent();
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.
virtual void parse_request(xmlNode *node)
parse a show command. No properties or children elements
Structure storing information used by the BES to handle the request.
virtual void dump(ostream &strm) const
dumps information about this object
virtual void dump(ostream &strm) const
dumps information about this object