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

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

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

XrdCl::ExOpenFuncWrapper::ExOpenFuncWrapper ( const Ctx< 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, and XrdCl::Status::IsOK().

Member Data Documentation

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

user defined function, functor or lambda

Referenced by HandleResponse().


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