bes
Updated for version 3.20.5
|
33 #include "BESXMLCatalogCommand.h"
34 #include "BESContainerStorageList.h"
36 #include "BESDataNames.h"
37 #include "BESXMLUtils.h"
39 #include "BESSyntaxUserError.h"
59 map<string, string> props;
61 if (name != CATALOG_RESPONSE_STR ) {
62 string err =
"The specified command " + name +
" is not a show catalog or show info command";
67 d_xmlcmd_dhi.
action = CATALOG_RESPONSE;
72 d_xmlcmd_dhi.
data[CATALOG] = props[CATALOG];
75 d_xmlcmd_dhi.
data[CONTAINER] = props[
"node"];
77 if (!d_xmlcmd_dhi.
data[CONTAINER].empty()) {
95 strm << BESIndent::LMarg <<
"BESXMLCatalogCommand::dump - (" << (
void *)
this <<
")" << endl;
98 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
std::string d_cmd_log_info
Used only for the log.
virtual void set_response()
The request has been parsed, use the command action name to set the response handler.
virtual void dump(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
virtual void parse_request(xmlNode *node)
Parse a show catalog command.
Base class for the BES's commands.
string action
the response object requested, e.g. das, dds
map< string, string > data
the map of string data that will be required for the current request.
virtual void dump(ostream &strm) const
dumps information about this object
Structure storing information used by the BES to handle the request.