|
Elements 6.3.4
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 |
References DataSynchronizer(), downloadAllFiles(), downloadOneFile(), fileAlreadyExists(), fileShouldBeWritten(), and hasBeenDownloaded().

| Elements::Services::DataSync::DataSynchronizer::DataSynchronizer | ( | const ConnectionConfiguration & | connection, |
| const DependencyConfiguration & | dependency ) |
Definition at line 37 of file DataSynchronizer.cpp.
References m_connection, and m_fileMap.
Referenced by Elements::Services::DataSync::IrodsSynchronizer::IrodsSynchronizer(), Elements::Services::DataSync::WebdavSynchronizer::WebdavSynchronizer(), and ~DataSynchronizer().
|
protectedpure virtual |
Implemented in Elements::Services::DataSync::IrodsSynchronizer, and Elements::Services::DataSync::WebdavSynchronizer.
Referenced by downloadOneFile().
| void Elements::Services::DataSync::DataSynchronizer::downloadAllFiles | ( | ) | const |
Definition at line 40 of file DataSynchronizer.cpp.
References downloadOneFile(), fileShouldBeWritten(), and m_fileMap.
Referenced by ~DataSynchronizer().

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

|
protected |
Definition at line 57 of file DataSynchronizer.cpp.
Referenced by fileShouldBeWritten(), and ~DataSynchronizer().
|
protected |
Definition at line 50 of file DataSynchronizer.cpp.
References fileAlreadyExists(), and m_connection.
Referenced by downloadAllFiles(), and ~DataSynchronizer().

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