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

#include <inputHandlerDcap.h>

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

Classes

class  dcapDirectory
 
class  readerDcap
 

Public Member Functions

 dcap ()=default
 
 ~dcap () 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< DirectorygetDirectory (const std::string &path) override
 
- Public Member Functions inherited from inputHandler::base
virtual ~base () override=default
 
virtual bool readLinkTarget (const std::string &, std::vector< char > &)
 read link target from a symlink More...
 
virtual std::unique_ptr< acl::listgetAclData (const std::string &)
 
- Public Member Functions inherited from pathHandler
virtual ~pathHandler ()=default
 
virtual std::string getXattr (const std::string &, const std::string &)
 
- Public Member Functions inherited from dcapCommon
 dcapCommon ()
 
bool pathExists (const std::string &path) override
 
std::unique_ptr< const genericStatgetStat (const std::string &path, bool followLink) override
 

Static Private Attributes

static factoryTemplate< dcapfactory
 

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)
 
- Static Public Member Functions inherited from dcapCommon
static std::string fixPathUrl (const std::string &path)
 
- 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 inputHandlerDcap.h.

Constructor & Destructor Documentation

◆ dcap()

inputHandler::dcap::dcap ( )
default

◆ ~dcap()

inputHandler::dcap::~dcap ( )
overridedefault

Member Function Documentation

◆ getDirectory()

std::unique_ptr< base::Directory > inputHandler::dcap::getDirectory ( const std::string &  path)
overridevirtual

Implements inputHandler::base.

Definition at line 145 of file inputHandlerDcap.cpp.

145  {
146  return std::unique_ptr<Directory>(new dcapDirectory(path));
147  }

◆ newReader()

std::unique_ptr< base::reader > inputHandler::dcap::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 13 of file inputHandlerDcap.cpp.

15  {
16  return std::unique_ptr<base::reader>(new readerDcap(aPath,
17  state,
18  inititalStat));
19  }

Member Data Documentation

◆ factory

factoryTemplate<dcap> inputHandler::dcap::factory
staticprivate

Definition at line 15 of file inputHandlerDcap.h.


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