33#include "BESShowDefsResponseHandler.h"
34#include "BESInfoList.h"
36#include "BESDefinitionStorageList.h"
37#include "BESResponseNames.h"
43BESShowDefsResponseHandler::BESShowDefsResponseHandler(
const string &name )
48BESShowDefsResponseHandler::~BESShowDefsResponseHandler( )
67 BESInfo *info = BESInfoList::TheList()->build_info() ;
68 d_response_object = info ;
69 dhi.action_name = SHOWDEFS_RESPONSE_STR ;
71 BESDefinitionStorageList::TheList()->show_definitions( *info ) ;
72 info->end_response() ;
91 if( d_response_object )
109 strm << BESIndent::LMarg <<
"BESShowDefsResponseHandler::dump - ("
110 << (
void *)
this <<
")" << endl ;
111 BESIndent::Indent() ;
113 BESIndent::UnIndent() ;
117BESShowDefsResponseHandler::ShowDefsResponseBuilder(
const string &name )
Structure storing information used by the BES to handle the request.
informational response object
virtual void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)=0
transmit the informational object
virtual void begin_response(const std::string &response_name, BESDataHandlerInterface &dhi)
begin the informational response
exception thrown if internal error encountered
handler object that knows how to create a specific response object
void dump(std::ostream &strm) const override
dumps information about this object
response handler that returns list of definitions currently defined
virtual void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)
transmit the response object built by the execute command using the specified transmitter object
virtual void dump(std::ostream &strm) const
dumps information about this object
virtual void execute(BESDataHandlerInterface &dhi)
executes the command 'show definitions;' by returning the list of currently defined definitions