XRootD
Loading...
Searching...
No Matches
XrdCl::ZipOperation< Derived, HasHndl, Response, Arguments > Class Template Reference

#include <XrdClZipOperations.hh>

Inheritance diagram for XrdCl::ZipOperation< Derived, HasHndl, Response, Arguments >:
Collaboration diagram for XrdCl::ZipOperation< Derived, HasHndl, Response, Arguments >:

Public Member Functions

 ZipOperation (Ctx< ZipArchive > zip, Arguments... args)
template<bool from>
 ZipOperation (ZipOperation< Derived, from, Response, Arguments... > &&op)
virtual ~ZipOperation ()
 Destructor.
Public Member Functions inherited from XrdCl::ConcreteOperation< Derived, HasHndl, Response, Arguments... >
Operation< HasHndl > * Move ()
Derived< true > operator>> (Hdlr &&hdlr)
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.
virtual std::string ToString ()=0
 Name of the operation.

Protected Attributes

Ctx< ZipArchivezip
 The file object itself.
Protected Attributes inherited from XrdCl::ConcreteOperation< Derived, HasHndl, Response, 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.

Friends

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

Additional Inherited Members

Protected Member Functions inherited from XrdCl::ConcreteOperation< Derived, HasHndl, Response, Arguments... >
Derived< true > StreamImpl (ResponseHandler *handler)
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)
virtual XRootDStatus RunImpl (PipelineHandler *handler, uint16_t timeout)=0
Static Protected Member Functions inherited from XrdCl::ConcreteOperation< Derived, HasHndl, Response, Arguments... >
static void AllocHandler (ConcreteOperation< Derived, true, Response, Args... > &me)
static Derived< true > PipeImpl (ConcreteOperation< Derived, HasHndl, Response, Args... > &me, Operation< true > &op)

Detailed Description

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

Base class for all zip archive related operations

  • Derived : the class that derives from this template (CRTP)
  • HasHndl : true if operation has a handler, false otherwise
  • Args : operation arguments

Definition at line 27 of file XrdClZipOperations.hh.

Constructor & Destructor Documentation

◆ ZipOperation() [1/2]

template<template< bool > class Derived, bool HasHndl, typename Response, typename ... Arguments>
XrdCl::ZipOperation< Derived, HasHndl, Response, Arguments >::ZipOperation ( Ctx< ZipArchive > zip,
Arguments... args )
inline

Constructor

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

Definition at line 39 of file XrdClZipOperations.hh.

References XrdCl::ConcreteOperation< Derived, HasHndl, Response, Arguments... >::ConcreteOperation, XrdCl::ConcreteOperation< Derived, HasHndl, Response, Arguments... >::args, and zip.

Here is the call graph for this function:

◆ ZipOperation() [2/2]

template<template< bool > class Derived, bool HasHndl, typename Response, typename ... Arguments>
template<bool from>
XrdCl::ZipOperation< Derived, HasHndl, Response, Arguments >::ZipOperation ( ZipOperation< 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

Definition at line 51 of file XrdClZipOperations.hh.

51 :
53 {
54
55 }

References XrdCl::ConcreteOperation< Derived, HasHndl, Response, Arguments... >::ConcreteOperation, ZipOperation, and zip.

Here is the call graph for this function:

◆ ~ZipOperation()

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

Destructor.

Definition at line 60 of file XrdClZipOperations.hh.

61 {
62
63 }

◆ ZipOperation

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

Definition at line 30 of file XrdClZipOperations.hh.

References ZipOperation.

Referenced by ZipOperation, and ZipOperation().

Member Data Documentation

◆ zip

template<template< bool > class Derived, bool HasHndl, typename Response, typename ... Arguments>
Ctx<ZipArchive> XrdCl::ZipOperation< Derived, HasHndl, Response, Arguments >::zip
protected

The file object itself.

Definition at line 70 of file XrdClZipOperations.hh.

Referenced by ZipOperation(), and ZipOperation().


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