Gromacs  2024.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Public Attributes | Static Public Attributes
gmx::test::TestFileManager::Impl Class Reference

Description

Private implementation class for TestFileManager.

Public Types

typedef std::set
< std::filesystem::path > 
FileNameList
 Container type for names of temporary files.
 

Public Member Functions

 Impl (const std::filesystem::path &path)
 Constructor. More...
 
void removeFiles ()
 Try to remove all temporary files. More...
 

Public Attributes

FileNameList files_
 List of unique paths returned by getTemporaryFilePath().
 
std::filesystem::path outputTempDirectory_
 Temporary output directory local to the current test, set by a test with setOutputTempDirectory() if the global default is inappropriate.
 

Static Public Attributes

static std::filesystem::path s_inputDirectory
 Global test input data path set with setInputDataDirectory().
 
static std::filesystem::path s_simulationDatabaseDirectory
 Global path to simulation input database set with setTestSimulationDataBaseDirectory().
 
static std::filesystem::path s_globalOutputTempDirectory
 Global temporary output directory for tests, set with setGlobalOutputTempDirectory().
 

Constructor & Destructor Documentation

gmx::test::TestFileManager::Impl::Impl ( const std::filesystem::path &  path)
inlineexplicit

Constructor.

Parameters
pathValue for the outputTempDirectory, typically set by default from s_globalOutputTempDirectory

Member Function Documentation

void gmx::test::TestFileManager::Impl::removeFiles ( )

Try to remove all temporary files.

Does not throw; errors (e.g., missing files) are silently ignored.


The documentation for this class was generated from the following file: