ewmscp
..
|
class for handling input This is the (abstract) base class for handling input, both reading a file via the reader class and for reading directories via the Directory class More...
#include <inputHandler.h>
Classes | |
class | Directory |
class | factoryClass |
class | factoryTemplate |
class | reader |
(abstract) class for reading a file An instance of this class is used to read data from a file vie the readBlock function. More... | |
Public Member Functions | |
virtual | ~base () override=default |
virtual std::unique_ptr< reader > | newReader (const std::string &path, copyRequest::stateType &state, const genericStat &inititalStat)=0 |
get a reader for the file at path More... | |
virtual bool | readLinkTarget (const std::string &, std::vector< char > &) |
read link target from a symlink More... | |
virtual std::unique_ptr< acl::list > | getAclData (const std::string &) |
virtual std::unique_ptr< Directory > | getDirectory (const std::string &path)=0 |
![]() | |
virtual | ~pathHandler ()=default |
virtual bool | pathExists (const std::string &path)=0 |
virtual std::unique_ptr< const genericStat > | getStat (const std::string &path, bool followLink=true)=0 |
virtual std::string | getXattr (const std::string &, const std::string &) |
Static Public Member Functions | |
static base * | newHandler (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 | |
base ()=default | |
Static Protected Member Functions | |
static std::map< std::string, factoryClass * > & | getFactoryMap () |
class for handling input This is the (abstract) base class for handling input, both reading a file via the reader class and for reading directories via the Directory class
Definition at line 35 of file inputHandler.h.
|
protecteddefault |
|
overridevirtualdefault |
|
inlinestatic |
Definition at line 137 of file inputHandler.h.
References getFactoryMap().
|
inlinevirtual |
Reimplemented in inputHandler::Gpfs.
Definition at line 155 of file inputHandler.h.
Referenced by outputHandler::dcap::ensureParentDirs().
|
pure virtual |
Implemented in inputHandler::posixFile, inputHandler::dummy, inputHandler::daosFs, inputHandler::libssh, inputHandler::davix, and inputHandler::dcap.
Referenced by moveRequestProvider::addDirContent(), and cmdLineRequestProvider::addDirContent().
|
inlinestaticprotected |
Definition at line 40 of file inputHandler.h.
Referenced by addAllowedNamesToOption(), inputHandler::base::factoryClass::factoryClass(), and newHandler().
|
inlinestatic |
create an instance of an inputHandler, select by name
Definition at line 130 of file inputHandler.h.
References getFactoryMap().
Referenced by copyRequest::perThreadData::perThreadData().
|
pure virtual |
get a reader for the file at path
std::system_error | if file can't be opened File will be closed when the pointer goes out of scope. |
[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 |
Implemented in inputHandler::posixFile, inputHandler::dummy, inputHandler::daosFs, inputHandler::libssh, inputHandler::davix, inputHandler::dcap, and inputHandler::Gpfs.
|
inlinevirtual |
read link target from a symlink
[in] | path | is the path to the link |
[in,out] | target | is a vector that the link target gets written into, must be large enough |
std::system_error | if the link could not be read |
std::runtime_error | if the target size is larger than target.size() |
Reimplemented in inputHandler::posixFile, inputHandler::daosFs, and inputHandler::libssh.
Definition at line 149 of file inputHandler.h.