ewmscp  ..
cmdLineRequestProvider.h
Go to the documentation of this file.
1 #ifndef __cmdLineRequestProvider_h__
2 #define __cmdLineRequestProvider_h__
4 
8 
10  private:
12  protected:
15  static std::string singleDestination;
17 
18  void processSource(const std::string& source) override;
19  virtual void addDirContent(const std::string& srcpath,
20  const std::string& dstpath,
21  const singleMap& mapEntry,
22  const genericStat& dirStat);
23  const singleMap& getDstPath(const std::string& source,
24  std::string& destination,
25  bool baseNameOnly = false) override;
26 
27  public:
28  cmdLineRequestProvider(decltype(requests) aRequests,
29  decltype(delayedRequests) aDelayedRequests,
30  decltype(parents) aParents,
31  decltype(InputHandler) aInputHandler,
32  decltype(OutputHandler) aOutputHandler):
33  noFollowRequestProvider(aRequests, aDelayedRequests, aParents,
34  aInputHandler, aOutputHandler),
35  processCmdLineDirs(false) {};
36  ~cmdLineRequestProvider() override = default;
37  bool isFollowMode() const override {
38  return false;
39  };
40  void prepareMappings(std::vector<std::string>& sources,
41  std::string& destination) override;
42  void printMappings(std::ostream& stream) override;
43 };
44 
46 
47 #endif
noFollowRequestProvider.h
options::single< bool >
class specialisation for options of type bool
Definition: Options.h:595
genericStat
generic stat abstraction class Used to abstract the variants of the stat structure.
Definition: genericStat.h:12
cmdLineRequestProvider::processSource
void processSource(const std::string &source) override
Definition: cmdLineRequestProvider.cpp:76
cmdLineRequestProvider::getDstPath
const singleMap & getDstPath(const std::string &source, std::string &destination, bool baseNameOnly=false) override
get detstination papth for a given source path
Definition: cmdLineRequestProvider.cpp:18
cmdLineRequestProvider::recursive
static options::single< bool > recursive
Definition: cmdLineRequestProvider.h:13
requestProvider::parents
bool parents
Definition: requestProvider.h:33
requestProvider::delayedRequests
copyRequest::timedQueue & delayedRequests
Definition: requestProvider.h:32
cmdLineRequestProvider::processCmdLineDirs
bool processCmdLineDirs
Definition: cmdLineRequestProvider.h:16
cmdLineRequestProvider
Definition: cmdLineRequestProvider.h:9
cmdLineRequestProvider::addDirContent
virtual void addDirContent(const std::string &srcpath, const std::string &dstpath, const singleMap &mapEntry, const genericStat &dirStat)
Definition: cmdLineRequestProvider.cpp:106
cmdLineRequestProvider::isFollowMode
bool isFollowMode() const override
Definition: cmdLineRequestProvider.h:37
requestProvider::OutputHandler
outputHandler::base * OutputHandler
Definition: requestProvider.h:35
requestProvider::factoryTemplate
Definition: requestProvider.h:54
cmdLineRequestProvider::prepareMappings
void prepareMappings(std::vector< std::string > &sources, std::string &destination) override
Definition: cmdLineRequestProvider.cpp:29
cmdLineRequestProvider::printMappings
void printMappings(std::ostream &stream) override
Definition: cmdLineRequestProvider.cpp:68
requestProvider::requests
copyRequest::simpleQueue & requests
Definition: requestProvider.h:31
singleMap
std::pair< std::string, std::string > singleMap
Definition: copyRequest.h:52
requestProvider::InputHandler
inputHandler::base * InputHandler
Definition: requestProvider.h:34
noFollowRequestProvider
Definition: noFollowRequestProvider.h:8
cmdLineRequestProvider::~cmdLineRequestProvider
~cmdLineRequestProvider() override=default
cmdLineRequestProvider::cmdLineRequestProvider
cmdLineRequestProvider(decltype(requests) aRequests, decltype(delayedRequests) aDelayedRequests, decltype(parents) aParents, decltype(InputHandler) aInputHandler, decltype(OutputHandler) aOutputHandler)
Definition: cmdLineRequestProvider.h:28
cmdLineRequestProvider::factory
static factoryTemplate< cmdLineRequestProvider > factory
Definition: cmdLineRequestProvider.h:11
cmdLineRequestProvider::singleDestination
static std::string singleDestination
Definition: cmdLineRequestProvider.h:15
cmdLineRequestProvider::dereferenceCmdLine
static options::single< bool > dereferenceCmdLine
Definition: cmdLineRequestProvider.h:14