ewmscp
..
src
pathHandler.h
Go to the documentation of this file.
1
#ifndef __pathHandler_h__
2
#define __pathHandler_h__
3
#include "
genericStat.h
"
4
#include <memory>
5
#include <string>
6
class
pathHandler
{
7
public
:
8
virtual
~pathHandler
() =
default
;
9
virtual
bool
pathExists
(
const
std::string& path) = 0;
10
virtual
std::unique_ptr<const genericStat>
getStat
(
const
std::string& path,
11
bool
followLink =
true
) = 0;
12
virtual
std::string
getXattr
(
const
std::string&
/*path*/
,
13
const
std::string&
/*name*/
) {
14
throw
unimplementedActionError
(
"xattr getting not implemented"
);
15
};
16
};
17
18
19
#endif
genericStat.h
unimplementedActionError
class for exceptions that result from unimplemented functions Exceptions of this kind are to be throw...
Definition:
copyRequestTypes.h:32
pathHandler::~pathHandler
virtual ~pathHandler()=default
pathHandler::pathExists
virtual bool pathExists(const std::string &path)=0
pathHandler::getXattr
virtual std::string getXattr(const std::string &, const std::string &)
Definition:
pathHandler.h:12
pathHandler
Definition:
pathHandler.h:6
pathHandler::getStat
virtual std::unique_ptr< const genericStat > getStat(const std::string &path, bool followLink=true)=0
Generated by
1.8.17