Skip to main content

Common Fluids Format 2024 R1

StorageFilesystem

Last update: 16.07.2025
1#ifndef CFFSDK_PROJECT_STORAGEFILESYSTEM_H
2#define CFFSDK_PROJECT_STORAGEFILESYSTEM_H
3
4#include "Project/LibraryType.hpp"
5#include "Project/Storage.hpp"
6#include "Project/URL.hpp"
7#include "Project/Path.hpp"
8#include <string>
9
10namespace ansys {
11namespace Project {
12
13class ANSYS_PROJECT_DLL StorageFilesystem : public Storage {
14public:
16 virtual ~StorageFilesystem();
17
18 Error createFolder(const URL& pParentPath,
19 const Path& pFolderPath);
20 virtual bool isFolder(const URL& pPath);
21 virtual bool isFile(const URL& pPath);
22 virtual Error copyFile(const std::string& pSource,const std::string& pTarget);
23 virtual Error eraseFile(const URL& pFile);
24 virtual Error eraseFolder(const URL& pFile,EraseOptions pRecursive);
25 virtual Error moveFile(const URL& pSource,const URL& pTarget);
26 virtual Error matchFiles(const URL& pPath,std::string pWildcard,std::vector<URL>& pMatchFiles);
27
28 virtual std::string getFileCompressionSuffix() const;
29 virtual Error compressFiles(const URL& pRootFolder,std::vector<URL>& pSourceFiles,const URL& pTargetArchive);
30 virtual Error extractFile(const URL& pArchive,const URL& pTargetLocation);
31
32 virtual Error getFileTimestamp(const URL& pFile,int& pTime);
33 virtual Error getFileChecksum(const URL& pFile,std::string& pChecksum);
34private:
35
36 static std::string get7zLocation(std::string& pError);
37};
38
39}
40}
41
42
43#endif // CFFSDK_PROJECT_STORAGEFILESYSTEM_H
The return state / error value of a Project function call.
Definition: Error.hpp:11
Paths used for internal Project filesystem.
Definition: Path.hpp:11
Class for Storage on standard filesystem, for file:// URL.
Definition: StorageFilesystem.hpp:13
Base class for file storage management module.
Definition: Storage.hpp:13
The address of a local or remote file, using the URI format.
Definition: URL.hpp:12
Definition: API.dox:1

Connect with Ansys