Elements  5.8
A C++ base framework for the Euclid Software.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
ElementsServices::DataSync::ConnectionConfiguration Class Reference

The connection configuration mainly holds: More...

#include <ConnectionConfiguration.h>

Collaboration diagram for ElementsServices::DataSync::ConnectionConfiguration:
[legend]

Public Member Functions

virtual ~ConnectionConfiguration ()=default
 
 ConnectionConfiguration (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 (path filename)
 
void parseHost (std::string name)
 
void parseOverwritingPolicy (std::string policy)
 

Detailed Description

The connection configuration mainly holds:

Definition at line 68 of file ConnectionConfiguration.h.

Constructor & Destructor Documentation

virtual ElementsServices::DataSync::ConnectionConfiguration::~ConnectionConfiguration ( )
virtualdefault
ElementsServices::DataSync::ConnectionConfiguration::ConnectionConfiguration ( path  configFile)
explicit

Create a dependency configuration by reading a configuration file.

Definition at line 31 of file ConnectionConfiguration.cpp.

References parseConfigurationFile().

Here is the call graph for this function:

Member Function Documentation

bool ElementsServices::DataSync::ConnectionConfiguration::overwritingAllowed ( ) const

Check whether existing local files can be overwritten.

Definition at line 35 of file ConnectionConfiguration.cpp.

References ElementsServices::DataSync::OVERWRITE, and overwritingPolicy.

Referenced by ElementsServices::DataSync::DataSynchronizer::fileShouldBeWritten().

void ElementsServices::DataSync::ConnectionConfiguration::parseConfigurationFile ( path  filename)
protected

Definition at line 39 of file ConnectionConfiguration.cpp.

References ElementsServices::DataSync::confFilePath(), distantRoot, Elements::Units::e, hostUrl, localRoot, ElementsServices::DataSync::localWorkspacePrefix(), parseHost(), parseOverwritingPolicy(), password, tries, user, and std::exception::what().

Referenced by ConnectionConfiguration().

Here is the call graph for this function:

void ElementsServices::DataSync::ConnectionConfiguration::parseHost ( std::string  name)
protected

Definition at line 88 of file ConnectionConfiguration.cpp.

References host, ElementsServices::DataSync::IRODS, ElementsServices::DataSync::lower(), and ElementsServices::DataSync::WEBDAV.

Referenced by parseConfigurationFile().

Here is the call graph for this function:

void ElementsServices::DataSync::ConnectionConfiguration::parseOverwritingPolicy ( std::string  policy)
protected

Definition at line 99 of file ConnectionConfiguration.cpp.

References ElementsServices::DataSync::ABORT, ElementsServices::DataSync::lower(), ElementsServices::DataSync::OVERWRITE, overwritingPolicy, and ElementsServices::DataSync::valueIsListed().

Referenced by parseConfigurationFile().

Here is the call graph for this function:

Member Data Documentation

path ElementsServices::DataSync::ConnectionConfiguration::distantRoot

Definition at line 100 of file ConnectionConfiguration.h.

Referenced by parseConfigurationFile().

DataHost ElementsServices::DataSync::ConnectionConfiguration::host
std::string ElementsServices::DataSync::ConnectionConfiguration::hostUrl
path ElementsServices::DataSync::ConnectionConfiguration::localRoot

Definition at line 101 of file ConnectionConfiguration.h.

Referenced by parseConfigurationFile().

OverwritingPolicy ElementsServices::DataSync::ConnectionConfiguration::overwritingPolicy

Definition at line 98 of file ConnectionConfiguration.h.

Referenced by overwritingAllowed(), and parseOverwritingPolicy().

std::string ElementsServices::DataSync::ConnectionConfiguration::password
size_t ElementsServices::DataSync::ConnectionConfiguration::tries
std::string ElementsServices::DataSync::ConnectionConfiguration::user

The documentation for this class was generated from the following files: