Skip to main content

Common Fluids Format 2024 R2

ansys::Project::StorageFilesystem Class Reference

Last update: 16.07.2025

Class for Storage on standard filesystem, for file:// URL. More...

#include "StorageFilesystem.hpp"

Inheritance diagram for ansys::Project::StorageFilesystem:
ansys::Project::Storage

Public Member Functions

 StorageFilesystem ()
 Constructor.
 
virtual ~StorageFilesystem ()
 Destructor.
 
Error createFolder (const URL &pParentPath, const Path &pFolderPath)
 See Storage::createFolder()
 
virtual bool isFolder (const URL &pPath)
 See Storage::isFolder()
 
virtual bool isFile (const URL &pPath)
 See Storage::isFile()
 
virtual Error copyFile (const std::string &pSource, const std::string &pTarget)
 See Storage::copyFile()
 
virtual Error eraseFile (const URL &pFile)
 See Storage::eraseFile()
 
virtual Error eraseFolder (const URL &pFile, EraseOptions pRecursive)
 See Storage::eraseFolder()
 
virtual Error moveFile (const URL &pSource, const URL &pTarget)
 See Storage::moveFile()
 
virtual Error matchFiles (const URL &pPath, std::string pWildcard, std::vector< URL > &pMatchFiles)
 See Storage::matchFiles()
 
virtual std::string getFileCompressionSuffix () const
 Returns the required file suffix for compressFile API.
 
virtual Error compressFiles (const URL &pRootFolder, std::vector< URL > &pSourceFiles, const URL &pTargetArchive)
 See Storage::compressFile()
 
virtual Error extractFile (const URL &pArchive, const URL &pTargetLocation)
 See Storage::extractFile()
 
virtual Error getFileTimestamp (const URL &pFile, int &pTime)
 See Storage::getFileTimeStamp()
 
virtual Error getFileChecksum (const URL &pFile, std::string &pChecksum)
 See Storage::getFileChecksum()
 
- Public Member Functions inherited from ansys::Project::Storage
 Storage (const std::string &pTypename)
 Constructor. More...
 
virtual ~Storage ()
 Destructor.
 

Additional Inherited Members

- Static Public Member Functions inherited from ansys::Project::Storage
static void registerInterface (const std::string &pType, Storage *pInterface)
 Register a Storage object to work with a specific URL type.
 
static StoragegetInterface (const std::string &pType)
 Retrieve the Storage object to use with a specific URL type.
 

Detailed Description

Class for Storage on standard filesystem, for file:// URL.

See Storage

Connect with Ansys