BESResponseHandler.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #ifndef I_BESResponseHandler_h
00034 #define I_BESResponseHandler_h 1
00035
00036 #include <string>
00037
00038 #include "BESObj.h"
00039 #include "BESResponseObject.h"
00040 #include "BESDataHandlerInterface.h"
00041 #include "BESTransmitter.h"
00042
00043 using std::string ;
00044 #if 0
00045 class BESResponseObject ;
00046 #endif
00047
00081 class BESResponseHandler : public BESObj
00082 {
00083 protected:
00084 string _response_name ;
00085 BESResponseObject *_response ;
00086
00087 BESResponseHandler( const string &name ) ;
00088 public:
00089 virtual ~BESResponseHandler(void) ;
00090
00100 virtual BESResponseObject *get_response_object() ;
00101
00116 virtual BESResponseObject *set_response_object( BESResponseObject *o ) ;
00117
00132 virtual void execute( BESDataHandlerInterface &dhi ) = 0 ;
00133
00145 virtual void transmit( BESTransmitter *transmitter,
00146 BESDataHandlerInterface &dhi ) = 0 ;
00147
00156 virtual string get_name( ) const { return _response_name ; }
00157
00158 virtual void dump( ostream &strm ) const ;
00159 };
00160
00161 #endif // I_BESResponseHandler_h
00162