24#ifndef ELEMENTSSERVICES_ELEMENTSSERVICES_DATASYNC_DATASYNCHRONIZER_H_
25#define ELEMENTSSERVICES_ELEMENTSSERVICES_DATASYNC_DATASYNCHRONIZER_H_
38inline namespace Services {
50 :
std::runtime_error(
"Unable to download file: '" + distantFile.
string() +
"' as: '" + localFile.
string() +
68 void downloadAllFiles()
const;
71 bool fileShouldBeWritten(
path localFile)
const;
73 bool fileAlreadyExists(
path localFile)
const;
75 void downloadOneFile(
path distantFile,
path localFile)
const;
77 bool hasBeenDownloaded(
path distantFile,
path localFile)
const;
defines the macros to be used for explicit export of the symbols
The connection configuration mainly holds:
Base class to synchronize test data.
virtual std::string createDownloadCommand(path distantFile, path localFile) const =0
std::map< path, path > m_fileMap
virtual ~DataSynchronizer()=default
ConnectionConfiguration m_connection
The dependency configurations holds, for each test file to be retrieved:
An exception raised when downloading fails.
DownloadFailed(path distantFile, path localFile)
virtual ~DownloadFailed()=default
#define ELEMENTS_API
Dummy definitions for the backward compatibility mode.
Path::Item path
importing the path item from ElementsKernel