XrdCl::Resp< Response > Struct Template Reference

#include <XrdClOperationHandlers.hh>

Inheritance diagram for XrdCl::Resp< Response >:
Inheritance graph
[legend]
Collaboration diagram for XrdCl::Resp< Response >:
Collaboration graph
[legend]

List of all members.

Static Public Member Functions

static ResponseHandlerCreate (std::function< void(XRootDStatus &, Response &)> func)
template<typename Return >
static ResponseHandlerCreate (std::packaged_task< Return(XRootDStatus &, Response &)> &task)

Detailed Description

template<typename Response>
struct XrdCl::Resp< Response >

Factory class, creates ForwardingHandler from std::function, in addition to what RespBase provides (

See also:
RespBase)

Member Function Documentation

template<typename Response >
template<typename Return >
static ResponseHandler* XrdCl::Resp< Response >::Create ( std::packaged_task< Return(XRootDStatus &, Response &)> &  task  )  [inline, static]

A factory method

Parameters:
func : the task that should be wrapped
Returns:
: TaskWrapper instance
template<typename Response >
static ResponseHandler* XrdCl::Resp< Response >::Create ( std::function< void(XRootDStatus &, Response &)>  func  )  [inline, static]

A factory method

Parameters:
func : the function/functor/lambda that should be wrapped
Returns:
: FunctionWrapper instance

The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 8 May 2020 for xrootd by  doxygen 1.6.1