MNE-CPP 0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
file.h
1//=============================================================================================================
35#ifndef FILE_UTILS_H
36#define FILE_UTILS_H
37
38//=============================================================================================================
39// INCLUDES
40//=============================================================================================================
41
42#include "utils_global.h"
43#include <string>
44
45//=============================================================================================================
46// QT INCLUDES
47//=============================================================================================================
48
49#ifdef QT_CORE_LIB
50#include <QString>
51#endif
52
53//=============================================================================================================
54// DEFINE NAMESPACE UTILSLIB
55//=============================================================================================================
56
57namespace UTILSLIB
58{
59
60//=============================================================================================================
65{
66public:
67 File() = delete;
68
69 //=========================================================================================================
77 static bool exists(const char* filePath);
78
79 //=========================================================================================================
87 static bool exists(const std::string& filePath);
88
89 //=========================================================================================================
99 static bool copy(const char* sourcePath, const char* destPath);
100
101 //=========================================================================================================
111 static bool copy(const std::string& sourcePath, const std::string& destPath);
112
113 //=========================================================================================================
123 static bool rename(const char* sourcePath, const char* destPath);
124
125 //=========================================================================================================
135 static bool rename(const std::string& sourcePath, const std::string& destPath);
136
137 //=========================================================================================================
146 static bool remove(const char* filePath);
147
148 //=========================================================================================================
157 static bool remove(const std::string& filePath);
158
159 //=========================================================================================================
168 static bool create(const char* filePath);
169
170 //=========================================================================================================
179 static bool create(const std::string& filePath);
180
181#ifdef QT_CORE_LIB // QString oveloads
182 //=========================================================================================================
190 static bool exists(const QString& filePath);
191
192 //=========================================================================================================
202 static bool copy(const QString& sourcePath, const QString& destPath);
203
204 //=========================================================================================================
214 static bool rename(const QString& sourcePath, const QString& destPath);
215
216 //=========================================================================================================
225 static bool remove(const QString& filePath);
226
227 //=========================================================================================================
236 static bool create(const QString& filePath);
237#endif
238};
239
240}//namepace
241#endif // FILE_UTILS_H
utils library export/import macros.
#define UTILSSHARED_EXPORT