33 #include "SampleSayResponseHandler.h" 34 #include "BESInfoList.h" 36 #include "SampleResponseNames.h" 38 SampleSayResponseHandler::SampleSayResponseHandler(
const string &name )
43 SampleSayResponseHandler::~SampleSayResponseHandler( )
52 BESInfo *info = BESInfoList::TheList()->build_info() ;
57 string str = dhi.
data[ SAY_WHAT ] +
" " + dhi.
data[ SAY_TO ] ;
58 info->add_tag(
"text", str ) ;
59 info->end_response() ;
79 strm << BESIndent::LMarg <<
"SampleSayResponseHandler::dump - (" 80 << (
void *)
this <<
")" << endl ;
83 BESIndent::UnIndent() ;
87 SampleSayResponseHandler::SampleSayResponseBuilder(
const string &name )
virtual void execute(BESDataHandlerInterface &dhi)
knows how to build a requested response object
virtual void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)=0
transmit the informational object
handler object that knows how to create a specific response object
informational response object
virtual void dump(ostream &strm) const
dumps information about this object
virtual void dump(ostream &strm) const
dumps information about this object
Structure storing information used by the BES to handle the request.
map< string, string > data
the map of string data that will be required for the current request.
virtual void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)
transmit the response object built by the execute command using the specified transmitter object ...
virtual void begin_response(const string &response_name, BESDataHandlerInterface &dhi)
begin the informational response