33 #ifndef I_BESRequestHandler_h
34 #define I_BESRequestHandler_h 1
46 #define BES_REQUEST_HANDLER_CATCH_ALL "catch_all"
76 map< string, p_request_handler > _handler_list ;
83 typedef map< string, p_request_handler >::const_iterator
Handler_citer ;
86 virtual const string &
get_name( )
const {
return _name ; }
88 virtual bool add_handler(
const string &handler_name,
95 virtual void dump( ostream &strm )
const ;
98 #endif // I_BESRequestHandler_h
virtual string get_handler_names()
return a comma separated list of response object types handled by this request handler ...
map< string, p_request_handler >::const_iterator Handler_citer
virtual ~BESRequestHandler(void)
bool(* p_request_handler)(BESDataHandlerInterface &)
Base object for bes objects.
BESRequestHandler(const string &name)
Represents a specific data type request handler.
virtual const string & get_name() const
Structure storing information used by the BES to handle the request.
virtual bool add_handler(const string &handler_name, p_request_handler handler_method)
add a handler method to the request handler that knows how to fill in a specific response object ...
map< string, p_request_handler >::iterator Handler_iter
virtual bool remove_handler(const string &handler_name)
remove the specified handler method from this request handler
virtual void dump(ostream &strm) const
dumps information about this object
virtual p_request_handler find_handler(const string &handler_name)
find the method that can handle the specified response object type