XRootD
Loading...
Searching...
No Matches
XrdCl::DelXAttrImpl< HasHndl > Class Template Reference

DelXAttr operation (. More...

#include <XrdClFileOperations.hh>

+ Inheritance diagram for XrdCl::DelXAttrImpl< HasHndl >:
+ Collaboration diagram for XrdCl::DelXAttrImpl< HasHndl >:

Public Types

enum  { NameArg }
 Argument indexes in the args tuple. More...
 

Public Member Functions

std::string ToString ()
 
- Public Member Functions inherited from XrdCl::FileOperation< DelXAttrImpl, HasHndl, Resp< void >, Arg< std::string > >
 FileOperation (Ctx< File > f, Arguments... args)
 
 FileOperation (FileOperation< DelXAttrImpl, from, Resp< void >, Arguments... > &&op)
 
virtual ~FileOperation ()
 Destructor.
 
- Public Member Functions inherited from XrdCl::ConcreteOperation< DelXAttrImpl, HasHndl, Resp< void >, Arguments... >
 ConcreteOperation (Args &&... args)
 
 ConcreteOperation (ConcreteOperation< DelXAttrImpl, from, Resp< void >, Args... > &&op)
 
Operation< HasHndl > * Move ()
 
DelXAttrImpl< true > operator>> (Hdlr &&hdlr)
 
DelXAttrImpl< true > operator| (FinalOperation &&fo)
 Adds a final operation to the pipeline.
 
DelXAttrImpl< true > operator| (Operation< false > &&op)
 
DelXAttrImpl< true > operator| (Operation< false > &op)
 
DelXAttrImpl< true > operator| (Operation< true > &&op)
 
DelXAttrImpl< true > operator| (Operation< true > &op)
 
DelXAttrImpl< HasHndl > Timeout (uint16_t timeout)
 Set operation timeout.
 
Operation< true > * ToHandled ()
 
- Public Member Functions inherited from XrdCl::Operation< HasHndl >
 Operation ()
 Constructor.
 
template<bool from>
 Operation (Operation< from > &&op)
 Move constructor between template instances.
 
virtual ~Operation ()
 Destructor.
 

Protected Member Functions

XRootDStatus RunImpl (PipelineHandler *handler, uint16_t pipelineTimeout)
 
- Protected Member Functions inherited from XrdCl::ConcreteOperation< DelXAttrImpl, HasHndl, Resp< void >, Arguments... >
DelXAttrImpl< true > StreamImpl (ResponseHandler *handler)
 
DelXAttrImpl< toTransform ()
 
- Protected Member Functions inherited from XrdCl::Operation< HasHndl >
void AddOperation (Operation< true > *op)
 
void Run (Timeout timeout, std::promise< XRootDStatus > prms, std::function< void(const XRootDStatus &)> final)
 

Additional Inherited Members

- Static Protected Member Functions inherited from XrdCl::ConcreteOperation< DelXAttrImpl, HasHndl, Resp< void >, Arguments... >
static void AllocHandler (ConcreteOperation< DelXAttrImpl, false, Resp< void >, Args... > &me)
 
static void AllocHandler (ConcreteOperation< DelXAttrImpl, true, Resp< void >, Args... > &me)
 
static DelXAttrImpl< true > PipeImpl (ConcreteOperation< DelXAttrImpl, HasHndl, Resp< void >, Args... > &me, Operation< false > &op)
 
static DelXAttrImpl< true > PipeImpl (ConcreteOperation< DelXAttrImpl, HasHndl, Resp< void >, Args... > &me, Operation< true > &op)
 
- Protected Attributes inherited from XrdCl::FileOperation< DelXAttrImpl, HasHndl, Resp< void >, Arg< std::string > >
Ctx< Filefile
 The file object itself.
 
- Protected Attributes inherited from XrdCl::ConcreteOperation< DelXAttrImpl, HasHndl, Resp< void >, Arguments... >
std::tuple< Args... > args
 Operation arguments.
 
uint16_t timeout
 Operation timeout.
 
- Protected Attributes inherited from XrdCl::Operation< HasHndl >
std::unique_ptr< PipelineHandlerhandler
 Operation handler.
 
bool valid
 Flag indicating if it is a valid object.
 

Detailed Description

template<bool HasHndl>
class XrdCl::DelXAttrImpl< HasHndl >

DelXAttr operation (.

See also
FileOperation)

Definition at line 1204 of file XrdClFileOperations.hh.

Member Enumeration Documentation

◆ anonymous enum

template<bool HasHndl>
anonymous enum

Argument indexes in the args tuple.

Enumerator
NameArg 

Definition at line 1217 of file XrdClFileOperations.hh.

Member Function Documentation

◆ RunImpl()

template<bool HasHndl>
XRootDStatus XrdCl::DelXAttrImpl< HasHndl >::RunImpl ( PipelineHandler * handler,
uint16_t pipelineTimeout )
inlineprotectedvirtual

RunImpl operation (

See also
Operation)
Parameters
params: container with parameters forwarded from previous operation
Returns
: status of the operation

Implements XrdCl::Operation< HasHndl >.

Definition at line 1236 of file XrdClFileOperations.hh.

1237 {
1238 std::string &name = std::get<NameArg>( this->args ).Get();
1239 // wrap the argument with a vector
1240 std::vector<std::string> attrs;
1241 attrs.push_back( name );
1242 // wrap the PipelineHandler so the response gets unpacked properly
1243 UnpackXAttrStatus *h = new UnpackXAttrStatus( handler );
1244 uint16_t timeout = pipelineTimeout < this->timeout ?
1245 pipelineTimeout : this->timeout;
1246 XRootDStatus st = this->file->DelXAttr( attrs, h, timeout );
1247 if( !st.IsOK() ) delete h;
1248 return st;
1249 }
std::unique_ptr< PipelineHandler > handler
Operation handler.

References XrdCl::ConcreteOperation< DelXAttrImpl, HasHndl, Resp< void >, Arguments... >::args, XrdCl::Operation< HasHndl >::handler, XrdCl::Status::IsOK(), and XrdCl::ConcreteOperation< DelXAttrImpl, HasHndl, Resp< void >, Arguments... >::timeout.

+ Here is the call graph for this function:

◆ ToString()

template<bool HasHndl>
std::string XrdCl::DelXAttrImpl< HasHndl >::ToString ( )
inlinevirtual
Returns
: name of the operation (
See also
Operation)

Implements XrdCl::Operation< HasHndl >.

Definition at line 1222 of file XrdClFileOperations.hh.

1223 {
1224 return "DelXAttrImpl";
1225 }

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