Elements
6.2
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
24
#ifndef ELEMENTSSERVICES_ELEMENTSSERVICES_DATASYNC_H_
25
#define ELEMENTSSERVICES_ELEMENTSSERVICES_DATASYNC_H_
26
27
#include "
ElementsKernel/Export.h
"
28
29
#include "
ElementsServices/DataSync/ConnectionConfiguration.h
"
30
#include "
ElementsServices/DataSync/DataSyncUtils.h
"
31
#include "
ElementsServices/DataSync/DependencyConfiguration.h
"
32
33
namespace
Elements
{
34
inline
namespace
Services {
35
namespace
DataSync {
36
47
class
ELEMENTS_API
DataSync
{
48
49
public
:
59
DataSync
(
path
connectionFile,
path
dependencyFile);
60
64
void
download();
65
73
void
downloadWithFallback(
path
connectionFile);
74
91
path
absolutePath(
path
relativePath);
92
93
private
:
94
ConnectionConfiguration
m_connectionConfig
;
95
path
m_distantRoot
;
96
path
m_localRoot
;
97
DependencyConfiguration
m_dependencyConfig
;
98
};
99
100
}
// namespace DataSync
101
}
// namespace Services
102
}
// namespace Elements
103
104
namespace
ElementsServices
=
Elements::Services
;
105
106
#endif // ELEMENTSSERVICES_ELEMENTSSERVICES_DATASYNC_H_
107
Export.h
defines the macros to be used for explicit export of the symbols
Elements::Services::DataSync::DataSync::m_dependencyConfig
DependencyConfiguration m_dependencyConfig
Definition:
DataSync.h:97
Elements::Services::DataSync::DataSync
A class to download test data from a data repository prior to the unit test run.
Definition:
DataSync.h:47
ELEMENTS_API
#define ELEMENTS_API
Dummy definitions for the backward compatibility mode.
Definition:
Export.h:74
Elements::Services::DataSync::DependencyConfiguration
The dependency configurations holds, for each test file to be retrieved:
Definition:
DependencyConfiguration.h:45
Elements::Services::DataSync::DataSync::m_connectionConfig
ConnectionConfiguration m_connectionConfig
Definition:
DataSync.h:94
DependencyConfiguration.h
Elements::Services::DataSync::DataSync::m_distantRoot
path m_distantRoot
Definition:
DataSync.h:95
DataSyncUtils.h
Elements::Services
Definition:
ConnectionConfiguration.h:34
Elements::Services::DataSync::DataSync::m_localRoot
path m_localRoot
Definition:
DataSync.h:96
ConnectionConfiguration.h
Elements::Services::DataSync::ConnectionConfiguration
The connection configuration mainly holds:
Definition:
ConnectionConfiguration.h:75
Elements
Definition:
callBackExample.h:35
Elements::Services::DataSync::path
Path::Item path
importing the path item from ElementsKernel
Definition:
DataSyncUtils.h:41
Generated by
1.8.17