xrootd
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
XrdCl::ExOpenFuncWrapper Class Reference

Lambda wrapper. More...

#include <XrdClOperationHandlers.hh>

Inheritance diagram for XrdCl::ExOpenFuncWrapper:
Inheritance graph
[legend]
Collaboration diagram for XrdCl::ExOpenFuncWrapper:
Collaboration graph
[legend]

Public Member Functions

 ExOpenFuncWrapper (const Ctx< File > &f, std::function< void(XRootDStatus &, StatInfo &)> handleFunction)
 Constructor.
 
 ExOpenFuncWrapper (const Ctx< File > &f, std::function< void(XRootDStatus &, StatInfo &, HostList &)> handleFunction)
 Constructor.
 
void HandleResponseWithHosts (XRootDStatus *status, AnyObject *response, HostList *hostList)
 Callback method.
 
- Public Member Functions inherited from XrdCl::ResponseHandler
virtual ~ResponseHandler ()
 
virtual void HandleResponse (XRootDStatus *status, AnyObject *response)
 

Private Attributes

Ctx< Filef
 
std::function< void(XRootDStatus &, StatInfo &, HostList &)> fun
 user defined function, functor or lambda
 

Additional Inherited Members

- Static Public Member Functions inherited from XrdCl::ResponseHandler
static ResponseHandlerWrap (std::function< void(XRootDStatus &, AnyObject &)> func)
 
static ResponseHandlerWrap (std::function< void(XRootDStatus *, AnyObject *)> func)
 

Detailed Description

Lambda wrapper.

Constructor & Destructor Documentation

◆ ExOpenFuncWrapper() [1/2]

XrdCl::ExOpenFuncWrapper::ExOpenFuncWrapper ( const Ctx< File > &  f,
std::function< void(XRootDStatus &, StatInfo &)>  handleFunction 
)
inline

Constructor.

Parameters
func: function, functor or lambda (2 arguments)

◆ ExOpenFuncWrapper() [2/2]

XrdCl::ExOpenFuncWrapper::ExOpenFuncWrapper ( const Ctx< File > &  f,
std::function< void(XRootDStatus &, StatInfo &, HostList &)>  handleFunction 
)
inline

Constructor.

Parameters
func: function, functor or lambda (3 arguments)

Member Function Documentation

◆ HandleResponseWithHosts()

void XrdCl::ExOpenFuncWrapper::HandleResponseWithHosts ( XRootDStatus status,
AnyObject response,
HostList hostList 
)
inlinevirtual

Callback method.

Reimplemented from XrdCl::ResponseHandler.

References f, fun, and XrdCl::Status::IsOK().

Member Data Documentation

◆ f

Ctx<File> XrdCl::ExOpenFuncWrapper::f
private

Referenced by HandleResponseWithHosts().

◆ fun

std::function<void( XRootDStatus&, StatInfo&, HostList& )> XrdCl::ExOpenFuncWrapper::fun
private

user defined function, functor or lambda

Referenced by HandleResponseWithHosts().


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