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

CloseFile operation (. More...

#include <XrdClZipOperations.hh>

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

Public Member Functions

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

CloseFile operation (.

See also
ZipOperation)

Definition at line 434 of file XrdClZipOperations.hh.

Member Function Documentation

◆ RunImpl()

template<bool HasHndl>
XRootDStatus XrdCl::CloseFileImpl< 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 467 of file XrdClZipOperations.hh.

468 {
469 XRootDStatus st = this->zip->CloseFile();
470 if( !st.IsOK() ) return st;
471 handler->HandleResponse( new XRootDStatus(), nullptr );
472 return XRootDStatus();
473 }
CloseFile operation (.
std::unique_ptr< PipelineHandler > handler
Operation handler.

◆ ToString()

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

Implements XrdCl::Operation< HasHndl >.

Definition at line 446 of file XrdClZipOperations.hh.

447 {
448 return "ZipCloseFile";
449 }

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