#include <vector>
#include <xbt/base.h>
-namespace simgrid {
-namespace xbt {
+namespace simgrid::xbt {
void path_push(std::string const& str);
void path_pop();
/** @brief Returns the file component of a path (reimplementation of POSIX basename) */
std::string get_base_name() const;
+ /** @brief Returns the name of a directory suitable for creating temporary files (e.g. "/tmp") */
+ static Path get_tmpdir();
+
private:
std::string path_;
};
-}}
+} // namespace simgrid::xbt
#endif /* XBT_FILE_HPP */