Elements  5.12.0
A C++ base framework for the Euclid Software.
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 
32 
33 namespace ElementsServices {
34 namespace DataSync {
35 
36 
48 
49 public:
50 
60  DataSync(path connectionFile, path dependencyFile);
61 
65  void download();
66 
74  void downloadWithFallback(path connectionFile);
75 
92  path absolutePath(path relativePath);
93 
94 private:
95 
100 
101 };
102 
103 } // namespace DataSync
104 } // namespace ElementsServices
105 
106 #endif // ELEMENTSSERVICES_ELEMENTSSERVICES_DATASYNC_H_
107 
defines the macros to be used for explicit export of the symbols
The connection configuration mainly holds:
A class to download test data from a data repository prior to the unit test run.
Definition: DataSync.h:47
ConnectionConfiguration m_connectionConfig
Definition: DataSync.h:96
DependencyConfiguration m_dependencyConfig
Definition: DataSync.h:99
The dependency configurations holds, for each test file to be retrieved:
#define ELEMENTS_API
Dummy definitions for the backward compatibility mode.
Definition: Export.h:74
Elements::Path::Item path
Definition: DataSyncUtils.h:39