Elements
6.2
A C++ base framework for the Euclid Software.
|
The connection configuration mainly holds: More...
#include <ConnectionConfiguration.h>
Public Member Functions | |
virtual | ~ConnectionConfiguration ()=default |
ConnectionConfiguration (const path &configFile) | |
Create a dependency configuration by reading a configuration file. More... | |
bool | overwritingAllowed () const |
Check whether existing local files can be overwritten. More... | |
Public Attributes | |
DataHost | host |
std::string | hostUrl |
std::string | user |
std::string | password |
OverwritingPolicy | overwritingPolicy |
size_t | tries |
path | distantRoot |
path | localRoot |
Protected Member Functions | |
void | parseConfigurationFile (const path &filename) |
void | parseHost (const std::string &name) |
void | parseOverwritingPolicy (const std::string &policy) |
The connection configuration mainly holds:
Definition at line 75 of file ConnectionConfiguration.h.
|
virtualdefault |
|
explicit |
Create a dependency configuration by reading a configuration file.
Definition at line 32 of file ConnectionConfiguration.cpp.
References parseConfigurationFile().
bool Elements::Services::DataSync::ConnectionConfiguration::overwritingAllowed | ( | ) | const |
Check whether existing local files can be overwritten.
Definition at line 36 of file ConnectionConfiguration.cpp.
References Elements::Services::DataSync::OVERWRITE, and overwritingPolicy.
Referenced by Elements::Services::DataSync::DataSynchronizer::fileShouldBeWritten().
|
protected |
Definition at line 40 of file ConnectionConfiguration.cpp.
References Elements::Services::DataSync::confFilePath(), distantRoot, Elements::Kernel::Units::e, hostUrl, localRoot, Elements::Services::DataSync::localWorkspacePrefix(), parseHost(), parseOverwritingPolicy(), password, tries, and user.
Referenced by ConnectionConfiguration().
|
protected |
Definition at line 79 of file ConnectionConfiguration.cpp.
References host, Elements::Services::DataSync::IRODS, Elements::Services::DataSync::lower(), and Elements::Services::DataSync::WEBDAV.
Referenced by parseConfigurationFile().
|
protected |
Definition at line 90 of file ConnectionConfiguration.cpp.
References Elements::Services::DataSync::ABORT, Elements::Services::DataSync::lower(), Elements::Services::DataSync::OVERWRITE, overwritingPolicy, and Elements::Services::DataSync::valueIsListed().
Referenced by parseConfigurationFile().
path Elements::Services::DataSync::ConnectionConfiguration::distantRoot |
Definition at line 104 of file ConnectionConfiguration.h.
Referenced by parseConfigurationFile().
DataHost Elements::Services::DataSync::ConnectionConfiguration::host |
Definition at line 98 of file ConnectionConfiguration.h.
Referenced by Elements::Services::DataSync::createSynchronizer(), and parseHost().
std::string Elements::Services::DataSync::ConnectionConfiguration::hostUrl |
Definition at line 99 of file ConnectionConfiguration.h.
Referenced by Elements::Services::DataSync::WebdavSynchronizer::createDownloadCommand(), and parseConfigurationFile().
path Elements::Services::DataSync::ConnectionConfiguration::localRoot |
Definition at line 105 of file ConnectionConfiguration.h.
Referenced by parseConfigurationFile().
OverwritingPolicy Elements::Services::DataSync::ConnectionConfiguration::overwritingPolicy |
Definition at line 102 of file ConnectionConfiguration.h.
Referenced by overwritingAllowed(), and parseOverwritingPolicy().
std::string Elements::Services::DataSync::ConnectionConfiguration::password |
Definition at line 101 of file ConnectionConfiguration.h.
Referenced by Elements::Services::DataSync::WebdavSynchronizer::createDownloadCommand(), and parseConfigurationFile().
size_t Elements::Services::DataSync::ConnectionConfiguration::tries |
Definition at line 103 of file ConnectionConfiguration.h.
Referenced by Elements::Services::DataSync::WebdavSynchronizer::createDownloadCommand(), and parseConfigurationFile().
std::string Elements::Services::DataSync::ConnectionConfiguration::user |
Definition at line 100 of file ConnectionConfiguration.h.
Referenced by Elements::Services::DataSync::WebdavSynchronizer::createDownloadCommand(), and parseConfigurationFile().