24#include <boost/filesystem/path.hpp>
30inline namespace Services {
34 : m_connectionConfig(connectionFile)
35 , m_distantRoot(m_connectionConfig.distantRoot)
36 , m_localRoot(m_connectionConfig.localRoot)
37 , m_dependencyConfig(m_distantRoot, m_localRoot, dependencyFile) {}
41 synchronizer->downloadAllFiles();
The connection configuration mainly holds:
void download()
Download the test data.
path absolutePath(path relativePath)
Get the absolute path to a local test file which has been downloaded.
DataSync(path connectionFile, path dependencyFile)
Initialize the synchronizer with configuration files.
ConnectionConfiguration m_connectionConfig
DependencyConfiguration m_dependencyConfig
void downloadWithFallback(path connectionFile)
Download the test data and provide a fallback host in case the primary host fails.
ELEMENTS_API std::shared_ptr< DataSynchronizer > createSynchronizer(ConnectionConfiguration connection, DependencyConfiguration dependency)
Path::Item path
importing the path item from ElementsKernel