Elements  6.2
A C++ base framework for the Euclid Software.
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
Elements::Services::DataSync::ConnectionConfiguration Class Reference

The connection configuration mainly holds: More...

#include <ConnectionConfiguration.h>

Collaboration diagram for Elements::Services::DataSync::ConnectionConfiguration:
Collaboration graph
[legend]

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)
 

Detailed Description

The connection configuration mainly holds:

Definition at line 75 of file ConnectionConfiguration.h.

Constructor & Destructor Documentation

◆ ~ConnectionConfiguration()

virtual Elements::Services::DataSync::ConnectionConfiguration::~ConnectionConfiguration ( )
virtualdefault

◆ ConnectionConfiguration()

Elements::Services::DataSync::ConnectionConfiguration::ConnectionConfiguration ( const path configFile)
explicit

Create a dependency configuration by reading a configuration file.

Definition at line 32 of file ConnectionConfiguration.cpp.

References parseConfigurationFile().

Here is the call graph for this function:

Member Function Documentation

◆ overwritingAllowed()

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().

◆ parseConfigurationFile()

void Elements::Services::DataSync::ConnectionConfiguration::parseConfigurationFile ( const path filename)
protected

◆ parseHost()

void Elements::Services::DataSync::ConnectionConfiguration::parseHost ( const std::string name)
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().

Here is the call graph for this function:

◆ parseOverwritingPolicy()

void Elements::Services::DataSync::ConnectionConfiguration::parseOverwritingPolicy ( const std::string policy)
protected

Member Data Documentation

◆ distantRoot

path Elements::Services::DataSync::ConnectionConfiguration::distantRoot

Definition at line 104 of file ConnectionConfiguration.h.

Referenced by parseConfigurationFile().

◆ host

DataHost Elements::Services::DataSync::ConnectionConfiguration::host

◆ hostUrl

std::string Elements::Services::DataSync::ConnectionConfiguration::hostUrl

◆ localRoot

path Elements::Services::DataSync::ConnectionConfiguration::localRoot

Definition at line 105 of file ConnectionConfiguration.h.

Referenced by parseConfigurationFile().

◆ overwritingPolicy

OverwritingPolicy Elements::Services::DataSync::ConnectionConfiguration::overwritingPolicy

Definition at line 102 of file ConnectionConfiguration.h.

Referenced by overwritingAllowed(), and parseOverwritingPolicy().

◆ password

std::string Elements::Services::DataSync::ConnectionConfiguration::password

◆ tries

size_t Elements::Services::DataSync::ConnectionConfiguration::tries

◆ user

std::string Elements::Services::DataSync::ConnectionConfiguration::user

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