34#include "../usage/BESUsageRequestHandler.h"
36#include "BESResponseHandler.h"
37#include "BESResponseNames.h"
38#include "BESVersionInfo.h"
39#include "BESDataNames.h"
47BESUsageRequestHandler::BESUsageRequestHandler(
const string &name )
50 add_method( HELP_RESPONSE, BESUsageRequestHandler::dap_build_help ) ;
51 add_method( VERS_RESPONSE, BESUsageRequestHandler::dap_build_version ) ;
54BESUsageRequestHandler::~BESUsageRequestHandler()
62 BESInfo *info =
dynamic_cast < BESInfo *
>(response) ;
64 throw BESInternalError(
"cast error", __FILE__, __LINE__ ) ;
66 map<string, string, std::less<>> attrs ;
67 attrs[
"name"] = PACKAGE_NAME ;
68 attrs[
"version"] = PACKAGE_VERSION ;
69 info->begin_tag(
"module", &attrs ) ;
71 info->end_tag(
"module" ) ;
80 BESVersionInfo *info =
dynamic_cast < BESVersionInfo *
>(response) ;
82 throw BESInternalError(
"cast error", __FILE__, __LINE__ ) ;
84 info->add_module( MODULE_NAME, MODULE_VERSION ) ;
98 strm << BESIndent::LMarg <<
"BESUsageRequestHandler::dump - ("
99 << (
void *)
this <<
")" << endl ;
100 BESIndent::Indent() ;
102 BESIndent::UnIndent() ;
Structure storing information used by the BES to handle the request.
virtual void add_data_from_file(const std::string &key, const std::string &name)
add data from a file to the informational object.
Represents a specific data type request handler.
virtual void dump(std::ostream &strm) const
dumps information about this object
virtual BESResponseObject * get_response_object()
return the current response object
virtual void dump(std::ostream &strm) const
dumps information about this object