#include <XrdClOperationHandlers.hh>
Static Public Member Functions | |
static ResponseHandler * | Create (std::function< void(XRootDStatus &, Response &)> func) |
template<typename Return > | |
static ResponseHandler * | Create (std::packaged_task< Return(XRootDStatus &, Response &)> &task) |
Factory class, creates ForwardingHandler from std::function, in addition to what RespBase provides (
static ResponseHandler* XrdCl::Resp< Response >::Create | ( | std::packaged_task< Return(XRootDStatus &, Response &)> & | task | ) | [inline, static] |
A factory method
func | : the task that should be wrapped |
References XrdCl::make_finalized().
static ResponseHandler* XrdCl::Resp< Response >::Create | ( | std::function< void(XRootDStatus &, Response &)> | func | ) | [inline, static] |
A factory method
func | : the function/functor/lambda that should be wrapped |
References XrdCl::make_finalized().