Ignition Common

API Reference

TempDirectory.hh File Reference
#include <memory>
#include <string>
#include <ignition/common/Export.hh>
#include <ignition/common/Filesystem.hh>

Go to the source code of this file.


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...


 Forward declarations for the common classes.


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...