XRootD
Loading...
Searching...
No Matches
XrdCl::EcPlugInFactory Class Reference

Plugin factory. More...

#include <XrdClEcHandler.hh>

Inheritance diagram for XrdCl::EcPlugInFactory:
Collaboration diagram for XrdCl::EcPlugInFactory:

Public Member Functions

 EcPlugInFactory (uint8_t nbdta, uint8_t nbprt, uint64_t chsz, std::vector< std::string > &&plgr)
 Constructor.
virtual ~EcPlugInFactory ()
 Destructor.
virtual FilePlugInCreateFile (const std::string &u)
 Create a file plug-in for the given URL.
virtual FileSystemPlugInCreateFileSystem (const std::string &url)
 Create a file system plug-in for the given URL.
Public Member Functions inherited from XrdCl::PlugInFactory
virtual ~PlugInFactory ()
 Destructor.

Detailed Description

Plugin factory.

Definition at line 467 of file XrdClEcHandler.hh.

Constructor & Destructor Documentation

◆ EcPlugInFactory()

XrdCl::EcPlugInFactory::EcPlugInFactory ( uint8_t nbdta,
uint8_t nbprt,
uint64_t chsz,
std::vector< std::string > && plgr )
inline

Constructor.

Definition at line 473 of file XrdClEcHandler.hh.

474 :
475 nbdta( nbdta ), nbprt( nbprt ), chsz( chsz ), plgr( std::move( plgr ) )
476 {
477 }

◆ ~EcPlugInFactory()

virtual XrdCl::EcPlugInFactory::~EcPlugInFactory ( )
inlinevirtual

Destructor.

Definition at line 482 of file XrdClEcHandler.hh.

483 {
484 }

Member Function Documentation

◆ CreateFile()

virtual FilePlugIn * XrdCl::EcPlugInFactory::CreateFile ( const std::string & u)
inlinevirtual

Create a file plug-in for the given URL.

Implements XrdCl::PlugInFactory.

Definition at line 489 of file XrdClEcHandler.hh.

490 {
491 URL url( u );
492 XrdEc::ObjCfg *objcfg = new XrdEc::ObjCfg( url.GetPath(), nbdta, nbprt,
493 chsz, false, true );
494 objcfg->plgr = std::move( plgr );
495 return new EcHandler( url, objcfg, nullptr );
496 }
std::vector< std::string > plgr

References XrdCl::URL::GetPath(), and XrdEc::ObjCfg::plgr.

Here is the call graph for this function:

◆ CreateFileSystem()

virtual FileSystemPlugIn * XrdCl::EcPlugInFactory::CreateFileSystem ( const std::string & url)
inlinevirtual

Create a file system plug-in for the given URL.

Implements XrdCl::PlugInFactory.

Definition at line 501 of file XrdClEcHandler.hh.

502 {
503 return nullptr;
504 }

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