| Elements
    6.2
    A C++ base framework for the Euclid Software. | 
Base class to synchronize test data. More...
#include <DataSynchronizer.h>


| Public Member Functions | |
| virtual | ~DataSynchronizer ()=default | 
| DataSynchronizer (const ConnectionConfiguration &connection, const DependencyConfiguration &dependency) | |
| void | downloadAllFiles () const | 
| Protected Member Functions | |
| bool | fileShouldBeWritten (path localFile) const | 
| bool | fileAlreadyExists (path localFile) const | 
| void | downloadOneFile (path distantFile, path localFile) const | 
| bool | hasBeenDownloaded (path distantFile, path localFile) const | 
| virtual std::string | createDownloadCommand (path distantFile, path localFile) const =0 | 
| Protected Attributes | |
| ConnectionConfiguration | m_connection | 
| std::map< path, path > | m_fileMap | 
Base class to synchronize test data.
Child classes should provide their synchronization command line.
Definition at line 61 of file DataSynchronizer.h.
| 
 | virtualdefault | 
| Elements::Services::DataSync::DataSynchronizer::DataSynchronizer | ( | const ConnectionConfiguration & | connection, | 
| const DependencyConfiguration & | dependency | ||
| ) | 
Definition at line 29 of file DataSynchronizer.cpp.
| 
 | protectedpure virtual | 
Implemented in Elements::Services::DataSync::WebdavSynchronizer, and Elements::Services::DataSync::IrodsSynchronizer.
Referenced by downloadOneFile().
| void Elements::Services::DataSync::DataSynchronizer::downloadAllFiles | ( | ) | const | 
Definition at line 32 of file DataSynchronizer.cpp.
References downloadOneFile(), fileShouldBeWritten(), and m_fileMap.

| 
 | protected | 
Definition at line 53 of file DataSynchronizer.cpp.
References createDownloadCommand(), Elements::Services::DataSync::createLocalDirOf(), hasBeenDownloaded(), and Elements::Services::DataSync::runCommandAndCaptureOutErr().
Referenced by downloadAllFiles().

| 
 | protected | 
Definition at line 49 of file DataSynchronizer.cpp.
Referenced by fileShouldBeWritten().
| 
 | protected | 
Definition at line 42 of file DataSynchronizer.cpp.
References fileAlreadyExists(), m_connection, and Elements::Services::DataSync::ConnectionConfiguration::overwritingAllowed().
Referenced by downloadAllFiles().

| 
 | protected | 
Definition at line 62 of file DataSynchronizer.cpp.
Referenced by downloadOneFile().
| 
 | protected | 
Definition at line 82 of file DataSynchronizer.h.
Referenced by Elements::Services::DataSync::WebdavSynchronizer::createDownloadCommand(), and fileShouldBeWritten().
Definition at line 83 of file DataSynchronizer.h.
Referenced by downloadAllFiles().
 1.8.17
 1.8.17