35#include <libdap/InternalErr.h> 
   37#include <BESResponseHandler.h> 
   38#include <BESResponseNames.h> 
   39#include <BESVersionInfo.h> 
   40#include <BESServiceRegistry.h> 
   43#include "BuildDmrppRequestHandler.h" 
   50using namespace builddmrpp;
 
   52BuildDmrppRequestHandler::BuildDmrppRequestHandler(
const string &name) :
 
   55    add_method(VERS_RESPONSE, BuildDmrppRequestHandler::mkdmrpp_build_vers);
 
   56    add_method(HELP_RESPONSE, BuildDmrppRequestHandler::mkdmrpp_build_help);
 
   63    if (!info) 
throw InternalErr(__FILE__, __LINE__, 
"Expected a BESVersionInfo instance");
 
   64    info->add_module(MODULE_NAME, MODULE_VERSION);
 
   68bool BuildDmrppRequestHandler::mkdmrpp_build_help(BESDataHandlerInterface &dhi)
 
   72    if (!info) 
throw InternalErr(__FILE__, __LINE__, 
"Expected a BESInfo instance");
 
   76    map<string, string, std::less<>> attrs;
 
   77    attrs[
"name"] = MODULE_NAME;
 
   78    attrs[
"version"] = MODULE_VERSION;
 
   79    list<string> services;
 
   81    if (!services.empty()) {
 
   83        attrs[
"handles"] = handles;
 
   85    info->begin_tag(
"module", &attrs);
 
   86    info->end_tag(
"module");
 
   93    strm << BESIndent::LMarg << 
"BuildDmrppRequestHandler::dump - (" << (
void *) 
this << 
")" << endl;
 
   96    BESIndent::UnIndent();
 
 
Structure storing information used by the BES to handle the request.
 
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 services_handled(const std::string &handler, std::list< std::string > &services)
returns the list of servies provided by the handler in question
 
static std::string implode(const std::list< std::string > &values, char delim)
 
void dump(std::ostream &strm) const override
dumps information about this object