34 #include "../usage/BESUsageRequestHandler.h" 36 #include "BESResponseHandler.h" 37 #include "BESResponseNames.h" 38 #include "BESVersionInfo.h" 39 #include "BESDataNames.h" 42 BESUsageRequestHandler::BESUsageRequestHandler(
const string &name )
45 add_method( HELP_RESPONSE, BESUsageRequestHandler::dap_build_help ) ;
46 add_method( VERS_RESPONSE, BESUsageRequestHandler::dap_build_version ) ;
49 BESUsageRequestHandler::~BESUsageRequestHandler()
57 BESInfo *info = dynamic_cast < BESInfo * >(response) ;
61 map<string,string> attrs ;
62 attrs[
"name"] = PACKAGE_NAME ;
63 attrs[
"version"] = PACKAGE_VERSION ;
64 info->begin_tag(
"module", &attrs ) ;
66 info->end_tag(
"module" ) ;
75 BESVersionInfo *info = dynamic_cast < BESVersionInfo * >(response) ;
79 info->add_module( MODULE_NAME, MODULE_VERSION ) ;
93 strm << BESIndent::LMarg <<
"BESUsageRequestHandler::dump - (" 94 << (
void *)
this <<
")" << endl ;
97 BESIndent::UnIndent() ;
exception thrown if inernal error encountered
virtual void add_data_from_file(const string &key, const string &name)
add data from a file to the informational object.
informational response object
virtual BESResponseObject * get_response_object()
return the current response object
virtual void dump(ostream &strm) const
dumps information about this object
Represents a specific data type request handler.
virtual void dump(ostream &strm) const
dumps information about this object
Structure storing information used by the BES to handle the request.
Abstract base class representing a specific set of information in response to a request to the BES.