XRootD
Loading...
Searching...
No Matches
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 626 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 645 of file XrdClOperationHandlers.hh.

646 {
647 return new RawWrapper( &hdlr );
648 }

◆ 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 634 of file XrdClOperationHandlers.hh.

635 {
636 return new RawWrapper( hdlr );
637 }

◆ 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 656 of file XrdClOperationHandlers.hh.

657 {
658 return new FutureWrapper<Response>( ftr );
659 }

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