Elements
5.8
A C++ base framework for the Euclid Software.
ElementsServices
ElementsServices
DataSync.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2012-2020 Euclid Science Ground Segment
3
*
4
* This library is free software; you can redistribute it and/or modify it under
5
* the terms of the GNU Lesser General Public License as published by the Free
6
* Software Foundation; either version 3.0 of the License, or (at your option)
7
* any later version.
8
*
9
* This library is distributed in the hope that it will be useful, but WITHOUT
10
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12
* details.
13
*
14
* You should have received a copy of the GNU Lesser General Public License
15
* along with this library; if not, write to the Free Software Foundation, Inc.,
16
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17
*/
18
19
#ifndef ELEMENTSSERVICES_ELEMENTSSERVICES_DATASYNC_H_
20
#define ELEMENTSSERVICES_ELEMENTSSERVICES_DATASYNC_H_
21
22
#include "
ElementsKernel/Export.h
"
23
24
#include "
ElementsServices/DataSync/DataSyncUtils.h
"
25
#include "
ElementsServices/DataSync/ConnectionConfiguration.h
"
26
#include "
ElementsServices/DataSync/DependencyConfiguration.h
"
27
28
namespace
ElementsServices
{
29
namespace
DataSync {
30
31
40
class
ELEMENTS_API
DataSync
{
41
42
public
:
43
53
DataSync
(
path
connectionFile,
path
dependencyFile);
54
58
void
download();
59
67
void
downloadWithFallback(
path
connectionFile);
68
85
path
absolutePath(
path
relativePath);
86
87
private
:
88
89
ConnectionConfiguration
m_connectionConfig
;
90
path
m_distantRoot
;
91
path
m_localRoot
;
92
DependencyConfiguration
m_dependencyConfig
;
93
94
};
95
96
}
// namespace DataSync
97
}
// namespace ElementsServices
98
99
#endif // ELEMENTSSERVICES_ELEMENTSSERVICES_DATASYNC_H_
ElementsServices::DataSync::DataSync::m_connectionConfig
ConnectionConfiguration m_connectionConfig
Definition:
DataSync.h:89
Export.h
defines the macros to be used for explicit export of the symbols
ElementsServices::DataSync::DataSync::m_localRoot
path m_localRoot
Definition:
DataSync.h:91
ElementsServices::DataSync::path
boost::filesystem::path path
Definition:
DataSyncUtils.h:33
ElementsServices::DataSync::DataSync::m_distantRoot
path m_distantRoot
Definition:
DataSync.h:90
ELEMENTS_API
#define ELEMENTS_API
Dummy definitions for the backward compatibility mode.
Definition:
Export.h:74
ElementsServices::DataSync::DependencyConfiguration
The dependency configurations holds, for each test file to be retrieved:
Definition:
DependencyConfiguration.h:38
ElementsServices::DataSync::DataSync
A class to download test data from a data repository prior to the unit test run.
Definition:
DataSync.h:40
ElementsServices
Definition:
ConnectionConfiguration.h:28
DependencyConfiguration.h
DataSyncUtils.h
ElementsServices::DataSync::ConnectionConfiguration
The connection configuration mainly holds:
Definition:
ConnectionConfiguration.h:68
ElementsServices::DataSync::DataSync::m_dependencyConfig
DependencyConfiguration m_dependencyConfig
Definition:
DataSync.h:92
ConnectionConfiguration.h
Generated by
1.8.17