gz/common/TempDirectory.hh
Forward declarations for the common classes.
STL class.
#define IGN_COMMON_WARN_IGNORE__DLL_INTERFACE_MISSING
Microsoft Visual Studio does not automatically export the interface information for member variables ...
Definition: gz/common/SuppressWarning.hh:65
std::string tempDirectoryPath()
Return the path to a directory suitable for temporary files.
@ FSWO_LOG_WARNINGS
Errors that occur during filesystem manipulation should be logged as warnings using ignwarn....
Definition: gz/common/Filesystem.hh:38
FilesystemWarningOp
Options for how to handle errors that occur in functions that manipulate the filesystem.
Definition: gz/common/Filesystem.hh:34
~TempDirectory()
Destroy the temporary directory, removing from filesystem if cleanup is true.
std::string createTempDirectory(const std::string &_baseName, const std::string &_parentPath, const FilesystemWarningOp _warningOp=FSWO_LOG_WARNINGS)
Create a directory in the tempDirectoryPath by expanding a name template.
bool Valid() const
Indicate if the TempDirectory object is in a valid state and that the folder exists on the filesystem...
Create a temporary directory in the OS temp location. Upon construction, the current working director...
Definition: gz/common/TempDirectory.hh:63
std::string Path() const
Retrieve the fully-expanded temporary directory path.
TempDirectory(const std::string &_prefix="temp_dir", const std::string &_subDir="ignition", bool _cleanup=true)
Create a directory in the tempDirectoryPath by expanding a name template. This directory can also be ...
bool DoCleanup() const
Retrieve the current cleanup flag state.
#define IGN_COMMON_WARN_RESUME__DLL_INTERFACE_MISSING
Definition: gz/common/SuppressWarning.hh:68