35#include "BESXMLCatalogCommand.h"
36#include "BESContainerStorageList.h"
38#include "BESDataNames.h"
39#include "BESXMLUtils.h"
41#include "BESSyntaxUserError.h"
66 map<string, string> props;
68 if (name != CATALOG_RESPONSE_STR ) {
69 string err =
"The specified command " + name +
" is not a show catalog or show info command";
74 d_xmlcmd_dhi.action = CATALOG_RESPONSE;
79 d_xmlcmd_dhi.data[CATALOG] = props[CATALOG];
82 d_xmlcmd_dhi.data[CONTAINER] = props[
"node"];
84 if (!d_xmlcmd_dhi.data[CONTAINER].empty()) {
102 strm << BESIndent::LMarg <<
"BESXMLCatalogCommand::dump - (" << (
void *)
this <<
")" << endl;
105 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
virtual void dump(std::ostream &strm) const
dumps information about this object
virtual void parse_request(xmlNode *node)
Parse a show catalog command.
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.
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