Gazebo Common

API Reference

6.0.1
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

namespace  gz
 Forward declarations for the common classes.
 
namespace  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.
 
std::string tempDirectoryPath ()
 Return the path to a directory suitable for temporary files.