 |
ewmscp
..
|
Go to the documentation of this file. 1 #ifndef __inputHandler_h__
2 #define __inputHandler_h__
41 static std::remove_reference<decltype(
getFactoryMap())>::type map;
66 virtual ~base()
override =
default;
79 virtual ~reader() noexcept(false) = default;
123 virtual std::unique_ptr<reader>
newReader(
const std::string& path,
133 return it->second->create();
135 throw std::runtime_error(
"no inputHandler factory called " + name);
139 option.fAddToRange(item.first);
150 std::vector<char>& ) {
155 virtual std::unique_ptr<acl::list>
getAclData(
const std::string& ) {
165 std::unique_ptr<const genericStat>
stat;
168 std::unique_ptr<const genericStat>& aStat):
name(aName),
169 stat(std::move(aStat)) {
172 std::unique_ptr<genericStat>& aStat):
name(aName),
173 stat(std::move(aStat)) {
179 std::unique_ptr<const genericStat>
getStat() {
180 return std::move(
stat);
185 virtual std::unique_ptr<Entry>
getNextEntry(
bool ignoreMissing) = 0;
187 virtual std::unique_ptr<Directory>
getDirectory(
const std::string& path) = 0;
class for exceptions that advise for delays Exceptions of this kind are to be thrown when circumstanc...
Entry(const std::string &aName, std::unique_ptr< const genericStat > &aStat)
Entry(const std::string &aName, std::unique_ptr< genericStat > &aStat)
generic stat abstraction class Used to abstract the variants of the stat structure.
class for exceptions that result from unimplemented functions Exceptions of this kind are to be throw...
std::unique_ptr< const genericStat > getStat()
delayAdvisingError(const char *aWhat)
std::unique_ptr< const genericStat > stat
data block, used to hold the data that are being copied (or checksummed).
delayAdvisingError(const std::string &aWhat)
class as base for inputHandler::base::reader and outputHandler::base::writer containing the common pa...
const std::string & getName() const
~delayAdvisingError() override=default