ewmscp  ..
Classes | Public Member Functions | Static Private Attributes | List of all members
inputHandler::Gpfs Class Reference

#include <inputHandlerGpfs.h>

Inheritance diagram for inputHandler::Gpfs:
[legend]
Collaboration diagram for inputHandler::Gpfs:
[legend]

Classes

class  readerGpfs
 

Public Member Functions

 Gpfs ()=default
 
 ~Gpfs () override=default
 
std::unique_ptr< readernewReader (const std::string &aPath, copyRequest::stateType &state, const genericStat &inititalStat) override
 get a reader for the file at path More...
 
std::unique_ptr< acl::listgetAclData (const std::string &path) override
 
- Public Member Functions inherited from inputHandler::posixFile
 posixFile ()=default
 
 ~posixFile () override=default
 
std::unique_ptr< readernewReader (const std::string &aPath, copyRequest::stateType &state, const genericStat &inititalStat) override
 get a reader for the file at path More...
 
bool readLinkTarget (const std::string &path, std::vector< char > &target) override
 read link target from a symlink More...
 
std::unique_ptr< DirectorygetDirectory (const std::string &path) override
 
- Public Member Functions inherited from inputHandler::base
virtual ~base () override=default
 
- Public Member Functions inherited from pathHandler
virtual ~pathHandler ()=default
 
- Public Member Functions inherited from posixFileCommon
bool pathExists (const std::string &path) override
 
std::unique_ptr< const genericStatgetStat (const std::string &path, bool followLink) override
 
std::string getXattr (const std::string &path, const std::string &name) override
 

Static Private Attributes

static factoryTemplate< Gpfsfactory
 

Additional Inherited Members

- Static Public Member Functions inherited from inputHandler::base
static basenewHandler (const std::string &name)
 create an instance of an inputHandler, select by name More...
 
template<class T >
static void addAllowedNamesToOption (T &option)
 
- Protected Member Functions inherited from inputHandler::base
 base ()=default
 
- Static Protected Member Functions inherited from inputHandler::base
static std::map< std::string, factoryClass * > & getFactoryMap ()
 

Detailed Description

Definition at line 14 of file inputHandlerGpfs.h.

Constructor & Destructor Documentation

◆ Gpfs()

inputHandler::Gpfs::Gpfs ( )
default

◆ ~Gpfs()

inputHandler::Gpfs::~Gpfs ( )
overridedefault

Member Function Documentation

◆ getAclData()

std::unique_ptr< acl::list > inputHandler::Gpfs::getAclData ( const std::string &  path)
overridevirtual

Reimplemented from inputHandler::base.

Definition at line 52 of file inputHandlerGpfs.cpp.

52  {
53  gpfs_acl_handler aclHandler;
54  aclHandler.get(-1, path);
55  return gpfsIoCommon::aclFromGpfs(aclHandler, path);
56  };

References gpfsIoCommon::aclFromGpfs(), and gpfs_acl_handler::get().

Here is the call graph for this function:

◆ newReader()

std::unique_ptr< base::reader > inputHandler::Gpfs::newReader ( const std::string &  path,
copyRequest::stateType state,
const genericStat inititalStat 
)
overridevirtual

get a reader for the file at path

Returns
unique ptr to a file reader.
Exceptions
std::system_errorif file can't be opened File will be closed when the pointer goes out of scope.
Parameters
[in]path[in] path to the file to be opened for reading
[in,out]state[in,out] state may be set to vanished if the file does not exist
[in]inititalStat[in] genericStat data of the file encountered before reading, needed for checking unchangedness at the end

Implements inputHandler::base.

Definition at line 15 of file inputHandlerGpfs.cpp.

17  {
18  return std::unique_ptr<base::reader>(new readerGpfs(aPath,
19  state,
20  inititalStat));
21  }

Member Data Documentation

◆ factory

factoryTemplate<Gpfs> inputHandler::Gpfs::factory
staticprivate

Definition at line 15 of file inputHandlerGpfs.h.


The documentation for this class was generated from the following files:
gpfs_acl_handler
class for handling non-opaque gpfs acls
Definition: gpfsFcntlHandler.h:33
gpfsIoCommon::aclFromGpfs
static std::unique_ptr< acl::list > aclFromGpfs(const gpfs_acl_handler &acl, const std::string &aPath)
Definition: gpfsCommon.cpp:83
gpfs_acl_handler::get
void get(int fd, const std::string &path)
Definition: gpfsFcntlHandler.cpp:99