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

Member Function Documentation

◆ Create() [1/3]

template<typename Response>
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 633 of file XrdClOperationHandlers.hh.

634 {
635 return new RawWrapper( &hdlr );
636 }

◆ Create() [2/3]

template<typename Response>
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 622 of file XrdClOperationHandlers.hh.

623 {
624 return new RawWrapper( hdlr );
625 }

◆ Create() [3/3]

template<typename Response>
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 644 of file XrdClOperationHandlers.hh.

645 {
646 return new FutureWrapper<Response>( ftr );
647 }

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