#include <policyRunRequestProvider.h>
|
| | policyRunRequestProvider (decltype(requests) aRequests, decltype(delayedRequests) aDelayedRequests, decltype(parents) aParents, decltype(InputHandler) aInputHandler, decltype(OutputHandler) aOutputHandler) |
| |
| | ~policyRunRequestProvider () override=default |
| |
| | noFollowRequestProvider (decltype(requests) aRequests, decltype(delayedRequests) aDelayedRequests, decltype(parents) aParents, decltype(InputHandler) aInputHandler, decltype(OutputHandler) aOutputHandler) |
| |
| | ~noFollowRequestProvider () override=default |
| |
| bool | isFollowMode () const override |
| |
| void | processSources (const std::vector< std::string > &sources) override |
| |
| | requestProvider (decltype(requests) aRequests, decltype(delayedRequests) aDelayedRequests, decltype(parents) aParents, decltype(InputHandler) aInputHandler, decltype(OutputHandler) aOutputHandler) |
| | ! use only the file name part in the destination More...
|
| |
| virtual | ~requestProvider ()=default |
| |
| virtual void | prepareMappings (std::vector< std::string > &sources, std::string &destination) |
| |
| virtual void | printMappings (std::ostream &stream) |
| |
|
| static requestProvider * | newProvider (const std::string &choice, decltype(requests) aRequests, decltype(delayedRequests) aDelayedRequests, decltype(parents) aParents, decltype(InputHandler) aInputHandler, decltype(OutputHandler) aOutputHandler) |
| |
| static void | addAllowedNamesToOption (options::single< std::string > &option) |
| |
| virtual copyRequest::base * | newRequest (inputHandler::base *InputHandler, const std::string &aSource, const std::string &aDestination, std::unique_ptr< const genericStat > &aStat, const singleMap &aMapEntry, bool remove, copyRequest::clock_type::time_point timestamp) |
| |
| virtual const singleMap & | getDstPath (const std::string &source, std::string &destination, bool baseNameOnly=false) |
| | get detstination papth for a given source path More...
|
| |
| static std::map< std::string, factoryClass * > & | getFactoryMap () |
| |
| copyRequest::simpleQueue & | requests |
| |
| copyRequest::timedQueue & | delayedRequests |
| |
| bool | parents |
| |
| inputHandler::base * | InputHandler |
| |
| outputHandler::base * | OutputHandler |
| |
| static options::single< std::string > & | sourceDecodeMethod |
| |
| static options::single< bool > | ignoreMissing |
| |
| static std::multiset< copyRequest::base *, copyRequest::base::pointerCompare > | requestSet |
| |
| static options::map< std::string, pathMapType > | pathMap |
| |
| static singleMap | badMapEntry |
| |
Definition at line 8 of file policyRunRequestProvider.h.
◆ policyRunRequestProvider()
◆ ~policyRunRequestProvider()
| policyRunRequestProvider::~policyRunRequestProvider |
( |
| ) |
|
|
overridedefault |
◆ processSource()
| void policyRunRequestProvider::processSource |
( |
const std::string & |
source | ) |
|
|
overrideprivatevirtual |
Implements noFollowRequestProvider.
Definition at line 16 of file policyRunRequestProvider.cpp.
18 std::ifstream srcList(source);
20 while (std::getline(srcList, line)) {
21 auto separatorStart = line.find(
" -- ");
22 if (separatorStart == std::string::npos) {
25 auto pathStart = separatorStart + 4;
27 escaper->deEscape(line.substr(pathStart), src);
33 src,
"stat",
"not found");
37 throw std::runtime_error(
"can't stat " + src);
39 if (sourceStat->isDir()) {
47 false, copyRequest::clock_type::now()));
References errMsg::emit(), escaperOption, requestProvider::getDstPath(), pathHandler::getStat(), noFollowRequestProvider::ignoreMissing, requestProvider::InputHandler, escapism::newEscaper(), quiet, quietStatPrinter(), noFollowRequestProvider::requestSet, copyRequest::base::setStatPrinter(), timerInst, and errMsg::warning.
◆ escaperOption
◆ factory
The documentation for this class was generated from the following files:
void emit(level aLogLevel, const location &loc, const std::string &aObject, const std::string &aAction, const Args &... args)
function to create and enqueue a message, this is the only way that messages should be created!
static options::single< bool > quiet('q', "quiet", "be quiet, no prefix to output lines")