xrootd
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
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

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

Constructor.

Parameters
func: function, functor or lambda

Member Function Documentation

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

Callback method.

Reimplemented from XrdCl::ResponseHandler.

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

Member Data Documentation

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

user defined function, functor or lambda

Referenced by HandleResponse().

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: