Gazebo Common

API Reference

4.7.0
gz/common/TempDirectory.hh File Reference
#include <memory>
#include <string>
#include <gz/common/config.hh>
#include <gz/common/Export.hh>
#include <gz/common/Filesystem.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

 ignition
 Forward declarations for the common classes.
 
 ignition::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...