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

MkDir operation (. More...

#include <XrdClFileSystemOperations.hh>

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

Public Types

enum  {
  PathArg ,
  FlagsArg ,
  ModeArg
}
 Argument indexes in the args tuple. More...
 
enum  Flags
 
enum  Mode
 Access mode. More...
 

Public Member Functions

std::string ToString ()
 
- Public Member Functions inherited from XrdCl::FileSystemOperation< MkDirImpl, HasHndl, Resp< void >, Arg< std::string >, Arg< MkDirFlags::Flags >, Arg< Access::Mode > >
 FileSystemOperation (Ctx< FileSystem > fs, Args... args)
 
 FileSystemOperation (FileSystemOperation< MkDirImpl, from, Resp< void >, Args... > &&op)
 
virtual ~FileSystemOperation ()
 Destructor.
 
- Public Member Functions inherited from XrdCl::ConcreteOperation< Derived, HasHndl, HdlrFactory, Args >
 ConcreteOperation (Args &&... args)
 
template<bool from>
 ConcreteOperation (ConcreteOperation< Derived, from, HdlrFactory, Args... > &&op)
 
Operation< HasHndl > * Move ()
 
template<typename Hdlr >
Derived< true > operator>> (Hdlr &&hdlr)
 
Derived< true > operator| (FinalOperation &&fo)
 Adds a final operation to the pipeline.
 
Derived< true > operator| (Operation< false > &&op)
 
Derived< true > operator| (Operation< false > &op)
 
Derived< true > operator| (Operation< true > &&op)
 
Derived< true > operator| (Operation< true > &op)
 
Derived< 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< Derived, HasHndl, HdlrFactory, Args >
Derived< true > StreamImpl (ResponseHandler *handler)
 
template<bool to>
Derived< 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< Derived, HasHndl, HdlrFactory, Args >
static void AllocHandler (ConcreteOperation< Derived, false, HdlrFactory, Args... > &me)
 
static void AllocHandler (ConcreteOperation< Derived, true, HdlrFactory, Args... > &me)
 
static Derived< true > PipeImpl (ConcreteOperation< Derived, HasHndl, HdlrFactory, Args... > &me, Operation< false > &op)
 
static Derived< true > PipeImpl (ConcreteOperation< Derived, HasHndl, HdlrFactory, Args... > &me, Operation< true > &op)
 
- Protected Attributes inherited from XrdCl::FileSystemOperation< MkDirImpl, HasHndl, Resp< void >, Arg< std::string >, Arg< MkDirFlags::Flags >, Arg< Access::Mode > >
Ctx< FileSystemfilesystem
 The file system object itself.
 
- Protected Attributes inherited from XrdCl::ConcreteOperation< Derived, HasHndl, HdlrFactory, 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::MkDirImpl< HasHndl >

MkDir operation (.

See also
FileSystemOperation)

Definition at line 384 of file XrdClFileSystemOperations.hh.

Member Enumeration Documentation

◆ anonymous enum

template<bool HasHndl>
anonymous enum

Argument indexes in the args tuple.

Enumerator
PathArg 
FlagsArg 
ModeArg 

Definition at line 398 of file XrdClFileSystemOperations.hh.

◆ Flags

template<bool HasHndl>
enum XrdCl::MkDirFlags::Flags

Definition at line 142 of file XrdClFileSystem.hh.

143 {
144 None = 0,
145 MakePath = 1
146 };

◆ Mode

template<bool HasHndl>
enum XrdCl::Access::Mode

Access mode.

Definition at line 121 of file XrdClFileSystem.hh.

122 {
123 None = 0,
124 UR = kXR_ur,
125 UW = kXR_uw,
126 UX = kXR_ux,
127 GR = kXR_gr,
128 GW = kXR_gw,
129 GX = kXR_gx,
130 OR = kXR_or,
131 OW = kXR_ow,
132 OX = kXR_ox
133 };
@ kXR_gw
Definition XProtocol.hh:444
@ kXR_ur
Definition XProtocol.hh:440
@ kXR_uw
Definition XProtocol.hh:441
@ kXR_gr
Definition XProtocol.hh:443
@ kXR_ow
Definition XProtocol.hh:447
@ kXR_gx
Definition XProtocol.hh:445
@ kXR_or
Definition XProtocol.hh:446
@ kXR_ox
Definition XProtocol.hh:448
@ kXR_ux
Definition XProtocol.hh:442

Member Function Documentation

◆ RunImpl()

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

418 {
419 std::string &path = std::get<PathArg>( this->args ).Get();
420 MkDirFlags::Flags flags = std::get<FlagsArg>( this->args ).Get();
421 Access::Mode mode = std::get<ModeArg>( this->args ).Get();
422 uint16_t timeout = pipelineTimeout < this->timeout ?
423 pipelineTimeout : this->timeout;
424 return this->filesystem->MkDir( path, flags, mode, handler, timeout );
425 }
std::tuple< Args... > args
Operation arguments.
uint16_t timeout
Operation timeout.
std::unique_ptr< PipelineHandler > handler
Operation handler.

References XrdCl::ConcreteOperation< Derived, HasHndl, HdlrFactory, Args >::args, XrdCl::FileSystemOperation< MkDirImpl, HasHndl, Resp< void >, Arg< std::string >, Arg< MkDirFlags::Flags >, Arg< Access::Mode > >::filesystem, XrdCl::Operation< HasHndl >::handler, and XrdCl::ConcreteOperation< Derived, HasHndl, HdlrFactory, Args >::timeout.

◆ ToString()

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

Implements XrdCl::Operation< HasHndl >.

Definition at line 403 of file XrdClFileSystemOperations.hh.

404 {
405 return "MkDir";
406 }

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