xrootd
Public Member Functions | Private Attributes | Static 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 (File &f, std::function< void(XRootDStatus &, StatInfo &)> handleFunction)
 Constructor. More...
 
void HandleResponse (XRootDStatus *status, AnyObject *response)
 Callback method. More...
 
- Public Member Functions inherited from XrdCl::ResponseHandler
virtual ~ResponseHandler ()
 
virtual void HandleResponseWithHosts (XRootDStatus *status, AnyObject *response, HostList *hostList)
 

Private Attributes

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

Static Private Attributes

static StatInfo nullref
 Null reference to the response (not really but acts as one) More...
 

Detailed Description

Lambda wrapper.

Constructor & Destructor Documentation

◆ ExOpenFuncWrapper()

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

Constructor.

Parameters
func: function, functor or lambda

Member Function Documentation

◆ HandleResponse()

void XrdCl::ExOpenFuncWrapper::HandleResponse ( XRootDStatus status,
AnyObject response 
)
inlinevirtual

Callback method.

Reimplemented from XrdCl::ResponseHandler.

References f, fun, nullref, and XrdCl::File::Stat().

Member Data Documentation

◆ f

File& XrdCl::ExOpenFuncWrapper::f
private

Referenced by HandleResponse().

◆ fun

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

user defined function, functor or lambda

Referenced by HandleResponse().

◆ nullref

StatInfo XrdCl::ExOpenFuncWrapper::nullref
staticprivate

Null reference to the response (not really but acts as one)

Referenced by HandleResponse().


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