Elements
5.12.0
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 65 of file DataSynchronizer.h.
|
virtualdefault |
ElementsServices::DataSync::DataSynchronizer::DataSynchronizer | ( | const ConnectionConfiguration & | connection, |
const DependencyConfiguration & | dependency | ||
) |
Definition at line 28 of file DataSynchronizer.cpp.
|
protectedpure virtual |
Implemented in ElementsServices::DataSync::WebdavSynchronizer, and ElementsServices::DataSync::IrodsSynchronizer.
Referenced by downloadOneFile().
void ElementsServices::DataSync::DataSynchronizer::downloadAllFiles | ( | ) | const |
Definition at line 34 of file DataSynchronizer.cpp.
References downloadOneFile(), fileShouldBeWritten(), and m_fileMap.
|
protected |
Definition at line 55 of file DataSynchronizer.cpp.
References createDownloadCommand(), ElementsServices::DataSync::createLocalDirOf(), hasBeenDownloaded(), and ElementsServices::DataSync::runCommandAndCaptureOutErr().
Referenced by downloadAllFiles().
|
protected |
Definition at line 51 of file DataSynchronizer.cpp.
Referenced by fileShouldBeWritten().
|
protected |
Definition at line 44 of file DataSynchronizer.cpp.
References fileAlreadyExists(), m_connection, and ElementsServices::DataSync::ConnectionConfiguration::overwritingAllowed().
Referenced by downloadAllFiles().
|
protected |
Definition at line 66 of file DataSynchronizer.cpp.
Referenced by downloadOneFile().
|
protected |
Definition at line 97 of file DataSynchronizer.h.
Referenced by ElementsServices::DataSync::WebdavSynchronizer::createDownloadCommand(), and fileShouldBeWritten().
Definition at line 98 of file DataSynchronizer.h.
Referenced by downloadAllFiles().