XRootD
XrdCl::RespBase< Response > Struct Template Reference

#include <XrdClOperationHandlers.hh>

+ Inheritance diagram for XrdCl::RespBase< Response >:
+ Collaboration diagram for XrdCl::RespBase< Response >:

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>

  • Response : response type

Definition at line 618 of file XrdClOperationHandlers.hh.

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

Definition at line 637 of file XrdClOperationHandlers.hh.

638  {
639  return new RawWrapper( &hdlr );
640  }

◆ 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

Definition at line 626 of file XrdClOperationHandlers.hh.

627  {
628  return new RawWrapper( hdlr );
629  }

◆ 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

Definition at line 648 of file XrdClOperationHandlers.hh.

649  {
650  return new FutureWrapper<Response>( ftr );
651  }

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