Gazebo Common

API Reference

5.7.0
gz/common/TempDirectory.hh File Reference
#include <string>
#include <gz/common/Export.hh>
#include <gz/common/Filesystem.hh>
#include <gz/utils/ImplPtr.hh>

Go to the source code of this file.

Classes

class  TempDirectory
 Create a temporary directory in the OS temp location. Upon construction, the current working directory will be set to this new temporary directory. Upon destruction, the current working directory will be restored to the location when the TempDirectory object was constructed. More...
 

Namespaces

 gz
 Forward declarations for the common classes.
 
 gz::common
 

Functions

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. More...
 
std::string tempDirectoryPath ()
 Return the path to a directory suitable for temporary files. More...