Elements 6.3.1
A C++ base framework for the Euclid Software.
Loading...
Searching...
No Matches
ConnectionConfiguration.h
Go to the documentation of this file.
1
24#ifndef ELEMENTSSERVICES_ELEMENTSSERVICES_DATASYNC_CONNECTIONCONFIGURATION_H_
25#define ELEMENTSSERVICES_ELEMENTSSERVICES_DATASYNC_CONNECTIONCONFIGURATION_H_
26
27#include <string>
28
30
32
33namespace Elements {
34inline namespace Services {
35namespace DataSync {
36
45
53
60public:
61 virtual ~UnknownHost() = default;
62 UnknownHost() : std::runtime_error("I don't know this hosting solution!") {}
63 explicit UnknownHost(const std::string& hostName)
64 : std::runtime_error("I don't know this hosting solution: " + hostName) {}
65};
66
76
77public:
78 virtual ~ConnectionConfiguration() = default;
79
83 explicit ConnectionConfiguration(const path& configFile);
84
88 bool overwritingAllowed() const;
89
90protected:
91 void parseConfigurationFile(const path& filename);
92
93 void parseHost(const std::string& name);
94
95 void parseOverwritingPolicy(const std::string& policy);
96
97public:
103 size_t tries;
106};
107
108} // namespace DataSync
109} // namespace Services
110} // namespace Elements
111
113
114#endif // ELEMENTSSERVICES_ELEMENTSSERVICES_DATASYNC_CONNECTIONCONFIGURATION_H_
115
defines the macros to be used for explicit export of the symbols
Exception raised when a hosting solution is not supported by the tool.
#define ELEMENTS_API
Dummy definitions for the backward compatibility mode.
Definition Export.h:74
DataHost
The test data hosting solution.
OverwritingPolicy
The overwriting policy if the local file already exists.
Path::Item path
importing the path item from ElementsKernel
STL namespace.