Elements
5.8
A C++ base framework for the Euclid Software.
|
Classes | |
class | UnknownHost |
Exception raised when a hosting solution is not supported by the tool. More... | |
class | ConnectionConfiguration |
The connection configuration mainly holds: More... | |
class | DownloadFailed |
An exception raised when downloading fails. More... | |
class | DataSynchronizer |
Base class to synchronize test data. More... | |
class | DependencyConfiguration |
The dependency configurations holds, for each test file to be retrieved: More... | |
class | IrodsSynchronizer |
A data synchronizer for iRODS hosts. More... | |
class | WebdavSynchronizer |
A data synchronizer for WebDAV hosts. More... | |
class | DataSync |
A class to download test data from a data repository prior to the unit test run. More... | |
Typedefs | |
using | path = boost::filesystem::path |
Enumerations | |
enum | DataHost { IRODS, WEBDAV } |
The test data hosting solution. More... | |
enum | OverwritingPolicy { ABORT, OVERWRITE } |
The overwriting policy if the local file already exists. More... | |
using ElementsServices::DataSync::path = typedef boost::filesystem::path |
Definition at line 33 of file DataSyncUtils.h.
The test data hosting solution.
Enumerator | |
---|---|
IRODS | |
WEBDAV |
Definition at line 35 of file ConnectionConfiguration.h.
The overwriting policy if the local file already exists.
Enumerator | |
---|---|
ABORT | |
OVERWRITE |
Definition at line 42 of file ConnectionConfiguration.h.
bool ElementsServices::DataSync::checkCall | ( | std::string | command | ) |
Definition at line 40 of file DataSyncUtils.cpp.
References std::string::c_str().
Referenced by irodsIsInstalled(), and webdavIsInstalled().
path ElementsServices::DataSync::confFilePath | ( | path | filename | ) |
Definition at line 36 of file DataSyncUtils.cpp.
References Elements::getConfigurationPath().
Referenced by ElementsServices::DataSync::DependencyConfiguration::parseConfigurationFile(), and ElementsServices::DataSync::ConnectionConfiguration::parseConfigurationFile().
bool ElementsServices::DataSync::containsInThisOrder | ( | std::string | input, |
std::vector< std::string > | substrings | ||
) |
Definition at line 90 of file DataSyncUtils.cpp.
References std::string::find().
void ElementsServices::DataSync::createLocalDirOf | ( | path | localFile | ) |
Definition at line 64 of file DataSyncUtils.cpp.
References localDirExists().
Referenced by ElementsServices::DataSync::DataSynchronizer::downloadOneFile().
std::shared_ptr< DataSynchronizer > ElementsServices::DataSync::createSynchronizer | ( | ConnectionConfiguration | connection, |
DependencyConfiguration | dependency | ||
) |
Definition at line 26 of file DataSynchronizerMaker.cpp.
References ElementsServices::DataSync::ConnectionConfiguration::host, IRODS, and WEBDAV.
Referenced by ElementsServices::DataSync::DataSync::download().
string ElementsServices::DataSync::environmentVariable | ( | std::string | name | ) |
Get the value of an environment variable.
Definition at line 74 of file DataSyncUtils.cpp.
References Elements::System::getEnv().
Referenced by localWorkspacePrefix().
bool ElementsServices::DataSync::irodsIsInstalled | ( | ) |
Check whether the iRODS client is installed.
Definition at line 26 of file IrodsSynchronizer.cpp.
References checkCall().
Referenced by ElementsServices::DataSync::IrodsSynchronizer::IrodsSynchronizer().
bool ElementsServices::DataSync::localDirExists | ( | path | localDir | ) |
Definition at line 60 of file DataSyncUtils.cpp.
Referenced by createLocalDirOf().
path ElementsServices::DataSync::localWorkspacePrefix | ( | ) |
Definition at line 78 of file DataSyncUtils.cpp.
References environmentVariable().
Referenced by ElementsServices::DataSync::ConnectionConfiguration::parseConfigurationFile().
string ElementsServices::DataSync::lower | ( | std::string | text | ) |
Definition at line 84 of file DataSyncUtils.cpp.
References std::string::begin(), std::string::end(), and std::transform().
Referenced by ElementsServices::DataSync::ConnectionConfiguration::parseHost(), and ElementsServices::DataSync::ConnectionConfiguration::parseOverwritingPolicy().
std::pair< string, string > ElementsServices::DataSync::runCommandAndCaptureOutErr | ( | std::string | command | ) |
Definition at line 45 of file DataSyncUtils.cpp.
References std::string::c_str(), std::array< T >::data(), and std::make_pair().
Referenced by ElementsServices::DataSync::DataSynchronizer::downloadOneFile().
ELEMENTS_API bool ElementsServices::DataSync::valueIsListed | ( | const T & | value, |
const std::vector< T > & | list | ||
) |
Definition at line 57 of file DataSyncUtils.h.
References std::vector< T >::begin(), std::vector< T >::end(), and std::find().
Referenced by ElementsServices::DataSync::ConnectionConfiguration::parseOverwritingPolicy().
bool ElementsServices::DataSync::webdavIsInstalled | ( | ) |
Check whether the WebDAV client is installed.
Definition at line 26 of file WebdavSynchronizer.cpp.
References checkCall().
Referenced by ElementsServices::DataSync::WebdavSynchronizer::WebdavSynchronizer().