Elements
6.2
A C++ base framework for the Euclid Software.
|
Go to the documentation of this file.
26 inline namespace Services {
30 : m_connection(connection), m_fileMap(dependency.fileMap()) {}
34 const auto& localFile = item.first;
35 const auto& distantFile = item.second;
50 return boost::filesystem::is_regular_file(localFile);
63 if (not boost::filesystem::is_regular_file(localFile)) {
66 return boost::filesystem::file_size(localFile) > 0;
DataSynchronizer(const ConnectionConfiguration &connection, const DependencyConfiguration &dependency)
An exception raised when downloading fails.
void downloadOneFile(path distantFile, path localFile) const
bool fileAlreadyExists(path localFile) const
ELEMENTS_API std::pair< std::string, std::string > runCommandAndCaptureOutErr(std::string command)
The dependency configurations holds, for each test file to be retrieved:
ELEMENTS_API void createLocalDirOf(path localFile)
bool overwritingAllowed() const
Check whether existing local files can be overwritten.
bool hasBeenDownloaded(path distantFile, path localFile) const
void downloadAllFiles() const
bool fileShouldBeWritten(path localFile) const
std::map< path, path > m_fileMap
Macro to silence unused variables warnings from the compiler.
virtual std::string createDownloadCommand(path distantFile, path localFile) const =0
The connection configuration mainly holds:
Path::Item path
importing the path item from ElementsKernel
ConnectionConfiguration m_connection