xrootd
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
XrdCl::RespBase< Response > Struct Template Reference

#include <XrdClOperationHandlers.hh>

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

Static Public Member Functions

static ResponseHandlerCreate (ResponseHandler *hdlr)
 
static ResponseHandlerCreate (ResponseHandler &hdlr)
 
static ResponseHandlerCreate (std::future< Response > &ftr)
 

Detailed Description

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

A base class for factories, creates ForwardingHandlers from ResponseHandler*, ResponseHandler& and std::future<Response>

Member Function Documentation

◆ Create() [1/3]

template<typename Response >
static ResponseHandler * XrdCl::RespBase< Response >::Create ( ResponseHandler hdlr)
inlinestatic

A factory method, simply forwards the given handler

Parameters
hdlr: the ResponseHandler that should be wrapped
Returns
: a ForwardingHandler instance

◆ Create() [2/3]

template<typename Response >
static ResponseHandler * XrdCl::RespBase< Response >::Create ( ResponseHandler hdlr)
inlinestatic

A factory method, simply forwards the given handler

Parameters
hdlr: the ResponseHandler that should be wrapped
Returns
: a ForwardingHandler instance

◆ Create() [3/3]

template<typename Response >
static ResponseHandler * XrdCl::RespBase< Response >::Create ( std::future< Response > &  ftr)
inlinestatic

A factory method

  • Response : response type
    Parameters
    ftr: the std::future that should be wrapped

The documentation for this struct was generated from the following file: