 |
ewmscp
..
|
Go to the documentation of this file. 1 #ifndef __posixFileCommon_h__
2 #define __posixFileCommon_h__
5 #include <forward_list>
8 bool pathExists(
const std::string& path)
override;
9 std::unique_ptr<const genericStat>
getStat(
const std::string& path,
10 bool followLink)
override;
11 std::string
getXattr(
const std::string& path,
12 const std::string& name)
override;
30 void add(
const std::string& name,
const std::string& value);
34 void setXattr(
const std::string& name,
const std::string& value)
override;
35 std::string
getXattr(
const std::string& name)
override;
37 std::unique_ptr<const genericStat>
getStat()
override;
class for asttribute data, abstract base to be implemented for specific handlers
std::string getXattr(const std::string &path, const std::string &name) override
std::unique_ptr< const genericStat > getStat() override
void fill(posixFileIoCommon &handler)
void setXattr(const std::string &name, const std::string &value) override
void add(const std::string &name, const std::string &value)
void set(ioHandle *handle) override
set this set of attributes on the file described by handle
void removeXattr(const std::string &name) override
std::unique_ptr< const genericStat > getStat(const std::string &path, bool followLink) override
base class for posixFile reader and writer class with the common stuff like fd, path and xattr handli...
bool pathExists(const std::string &path) override
class as base for inputHandler::base::reader and outputHandler::base::writer containing the common pa...
std::unique_ptr< ioHandle::attrDataType > getAttrData(const outputHandler::base *aOutputHandler) override
get attributes in the optimal way for setting with aOutputHandler
posixFileIoCommon(const std::string &aPath)
std::string getXattr(const std::string &name) override
get one extended attribute value
~attrDataType() override=default