xrootd
Public Member Functions | Protected Attributes | Friends | List of all members
XrdCl::FileOperation< Derived, HasHndl, Response, Arguments > Class Template Reference

#include <XrdClFileOperations.hh>

Inheritance diagram for XrdCl::FileOperation< Derived, HasHndl, Response, Arguments >:
Inheritance graph
[legend]
Collaboration diagram for XrdCl::FileOperation< Derived, HasHndl, Response, Arguments >:
Collaboration graph
[legend]

Public Member Functions

 FileOperation (File *f, Arguments... args)
 
 FileOperation (File &f, Arguments... args)
 
template<bool from>
 FileOperation (FileOperation< Derived, from, Response, Arguments... > &&op)
 
virtual ~FileOperation ()
 Destructor. More...
 
- Public Member Functions inherited from XrdCl::ConcreteOperation< Derived, HasHndl, Response, Arguments... >
 ConcreteOperation (Args &&... args)
 
 ConcreteOperation (ConcreteOperation< Derived, from, Response, Args... > &&op)
 
Derived< true > operator>> (Hdlr &&hdlr)
 
Derived< true > operator| (Operation< true > &op)
 
Derived< true > operator| (Operation< true > &&op)
 
Derived< true > operator| (Operation< false > &op)
 
Derived< true > operator| (Operation< false > &&op)
 
Derived< HasHndl > Recovery (rcvry_func recovery)
 Set recovery procedure in case the operation fails. More...
 
Operation< HasHndl > * Move ()
 
Operation< true > * ToHandled ()
 
- Public Member Functions inherited from XrdCl::Operation< HasHndl >
 Operation ()
 Constructor. More...
 
template<bool from>
 Operation (Operation< from > &&op)
 Move constructor between template instances. More...
 
virtual ~Operation ()
 Destructor. More...
 
virtual std::string ToString ()=0
 Name of the operation. More...
 

Protected Attributes

Filefile
 The file object itself. More...
 
- Protected Attributes inherited from XrdCl::ConcreteOperation< Derived, HasHndl, Response, Arguments... >
std::tuple< Args... > args
 Operation arguments. More...
 
rcvry_func recovery
 The recovery routine for this operation. More...
 
- Protected Attributes inherited from XrdCl::Operation< HasHndl >
std::unique_ptr< PipelineHandlerhandler
 Operation handler. More...
 
bool valid
 Flag indicating if it is a valid object. More...
 

Friends

template<template< bool > class, bool , typename , typename ... >
class FileOperation
 

Additional Inherited Members

- Protected Member Functions inherited from XrdCl::ConcreteOperation< Derived, HasHndl, Response, Arguments... >
Derived< to > Transform ()
 
Derived< true > StreamImpl (ResponseHandler *handler)
 
- Protected Member Functions inherited from XrdCl::Operation< HasHndl >
void Run (std::promise< XRootDStatus > prms, std::function< void(const XRootDStatus &)> final)
 
virtual XRootDStatus RunImpl ()=0
 
void ForceHandler (const XRootDStatus &status)
 
void AddOperation (Operation< true > *op)
 
- Static Protected Member Functions inherited from XrdCl::ConcreteOperation< Derived, HasHndl, Response, Arguments... >
static Derived< true > PipeImpl (ConcreteOperation< Derived, true, Response, Args... > &me, Operation< true > &op)
 
static Derived< true > PipeImpl (ConcreteOperation< Derived, true, Response, Args... > &me, Operation< false > &op)
 
static Derived< true > PipeImpl (ConcreteOperation< Derived, false, Response, Args... > &me, Operation< true > &op)
 
static Derived< true > PipeImpl (ConcreteOperation< Derived, false, Response, Args... > &me, Operation< false > &op)
 

Detailed Description

template<template< bool > class Derived, bool HasHndl, typename Response, typename ... Arguments>
class XrdCl::FileOperation< Derived, HasHndl, Response, Arguments >

Base class for all file releated operations

Constructor & Destructor Documentation

◆ FileOperation() [1/3]

template<template< bool > class Derived, bool HasHndl, typename Response, typename ... Arguments>
XrdCl::FileOperation< Derived, HasHndl, Response, Arguments >::FileOperation ( File f,
Arguments...  args 
)
inline

Constructor

Parameters
f: file on which the operation will be performed
args: file operation arguments

◆ FileOperation() [2/3]

template<template< bool > class Derived, bool HasHndl, typename Response, typename ... Arguments>
XrdCl::FileOperation< Derived, HasHndl, Response, Arguments >::FileOperation ( File f,
Arguments...  args 
)
inline

Constructor

Parameters
f: file on which the operation will be performed
args: file operation arguments

◆ FileOperation() [3/3]

template<template< bool > class Derived, bool HasHndl, typename Response, typename ... Arguments>
template<bool from>
XrdCl::FileOperation< Derived, HasHndl, Response, Arguments >::FileOperation ( FileOperation< Derived, from, Response, Arguments... > &&  op)
inline

Move constructor from other states

  • from : state from which the object is being converted
Parameters
op: the object that is being converted

◆ ~FileOperation()

template<template< bool > class Derived, bool HasHndl, typename Response, typename ... Arguments>
virtual XrdCl::FileOperation< Derived, HasHndl, Response, Arguments >::~FileOperation ( )
inlinevirtual

Destructor.

Friends And Related Function Documentation

◆ FileOperation

template<template< bool > class Derived, bool HasHndl, typename Response, typename ... Arguments>
template<template< bool > class, bool , typename , typename ... >
friend class FileOperation
friend

Member Data Documentation

◆ file

template<template< bool > class Derived, bool HasHndl, typename Response, typename ... Arguments>
File* XrdCl::FileOperation< Derived, HasHndl, Response, Arguments >::file
protected

The file object itself.


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