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

DelXAttr operation (. More...

#include <XrdClFileSystemOperations.hh>

Inheritance diagram for XrdCl::DelXAttrFsImpl< HasHndl >:
Collaboration diagram for XrdCl::DelXAttrFsImpl< HasHndl >:

Public Types

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

Public Member Functions

std::string ToString ()
Public Member Functions inherited from XrdCl::FileSystemOperation< DelXAttrFsImpl, HasHndl, Resp< void >, Arg< std::string >, Arg< std::string > >
virtual ~FileSystemOperation ()
 Destructor.
Public Member Functions inherited from XrdCl::ConcreteOperation< DelXAttrFsImpl, HasHndl, Resp< void >, Args... >
Operation< HasHndl > * Move ()
DelXAttrFsImpl< true > operator>> (Hdlr &&hdlr)
DelXAttrFsImpl< true > operator| (Operation< true > &op)
DelXAttrFsImpl< 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< DelXAttrFsImpl, HasHndl, Resp< void >, Args... >
DelXAttrFsImpl< true > StreamImpl (ResponseHandler *handler)
DelXAttrFsImpl< 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< DelXAttrFsImpl, HasHndl, Resp< void >, Args... >
static void AllocHandler (ConcreteOperation< DelXAttrFsImpl, true, Resp< void >, Args... > &me)
static DelXAttrFsImpl< true > PipeImpl (ConcreteOperation< DelXAttrFsImpl, HasHndl, Resp< void >, Args... > &me, Operation< true > &op)
Protected Attributes inherited from XrdCl::FileSystemOperation< DelXAttrFsImpl, HasHndl, Resp< void >, Arg< std::string >, Arg< std::string > >
Ctx< FileSystemfilesystem
 The file system object itself.
Protected Attributes inherited from XrdCl::ConcreteOperation< DelXAttrFsImpl, HasHndl, Resp< void >, Args... >
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::DelXAttrFsImpl< HasHndl >

DelXAttr operation (.

See also
FileOperation)

Definition at line 1089 of file XrdClFileSystemOperations.hh.

Member Enumeration Documentation

◆ anonymous enum

template<bool HasHndl>
anonymous enum

Argument indexes in the args tuple.

Enumerator
PathArg 
NameArg 

Definition at line 1103 of file XrdClFileSystemOperations.hh.

Member Function Documentation

◆ RunImpl()

template<bool HasHndl>
XRootDStatus XrdCl::DelXAttrFsImpl< 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 1122 of file XrdClFileSystemOperations.hh.

1123 {
1124 std::string &path = std::get<PathArg>( this->args ).Get();
1125 std::string &name = std::get<NameArg>( this->args ).Get();
1126 // wrap the argument with a vector
1128 attrs.push_back( name );
1129 // wrap the PipelineHandler so the response gets unpacked properly
1132 pipelineTimeout : this->timeout;
1133 XRootDStatus st = this->filesystem->DelXAttr( path, attrs, h, timeout );
1134 if( !st.IsOK() ) delete h;
1135 return st;
1136 }
std::unique_ptr< PipelineHandler > handler
Operation handler.

References XrdCl::ConcreteOperation< DelXAttrFsImpl, HasHndl, Resp< void >, Args... >::args, XrdCl::FileSystemOperation< DelXAttrFsImpl, HasHndl, Resp< void >, Arg< std::string >, Arg< std::string > >::filesystem, XrdCl::Operation< HasHndl >::handler, XrdCl::Status::IsOK(), and XrdCl::ConcreteOperation< DelXAttrFsImpl, HasHndl, Resp< void >, Args... >::timeout.

Here is the call graph for this function:

◆ ToString()

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

Implements XrdCl::Operation< HasHndl >.

Definition at line 1108 of file XrdClFileSystemOperations.hh.

1109 {
1110 return "DelXAttrFsImpl";
1111 }

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