bes
Updated for version 3.20.6
|
2 #include "W10nShowPathInfoCommand.h"
4 #include "BESDataNames.h"
7 #include "BESXMLUtils.h"
8 #include "BESSyntaxUserError.h"
15 #define W10N_SHOW_PATH_INFO_DHI_TAG "show.w10nPathInfo"
32 map<string, string> props;
34 if (name != W10N_SHOW_PATH_INFO_REQUEST) {
35 string err =
"The specified command " + name +
" is not a show w10n command";
40 d_xmlcmd_dhi.
action = W10N_SHOW_PATH_INFO_DHI_TAG;
41 d_xmlcmd_dhi.
data[W10N_SHOW_PATH_INFO_DHI_TAG] = W10N_SHOW_PATH_INFO_DHI_TAG;
45 d_xmlcmd_dhi.
data[CONTAINER] = props[
"node"];
46 if (!d_xmlcmd_dhi.
data[CONTAINER].empty()) {
51 BESDEBUG(W10N_DEBUG_KEY,
"Built BES Command: '" <<
d_cmd_log_info <<
"'"<< endl );
66 strm << BESIndent::LMarg <<
"W10nShowPathInfoCommand::dump - (" << (
void *)
this <<
")" << endl;
69 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 parse_request(xmlNode *node)
parse a show command. No properties or children elements
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.
Structure storing information used by the BES to handle the request.