Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
fc::temp_directory Class Reference

#include <filesystem.hpp>

Inheritance diagram for fc::temp_directory:
Collaboration diagram for fc::temp_directory:

Public Member Functions

 temp_directory (temp_directory &&other)
 
temp_directoryoperator= (temp_directory &&other)
 
 temp_directory (const fc::path &tempFolder=fc::temp_directory_path())
 
- Public Member Functions inherited from fc::temp_file_base
 ~temp_file_base ()
 
 operator bool () const
 
bool operator! () const
 
const fc::pathpath () const
 
void remove ()
 
void release ()
 

Additional Inherited Members

- Protected Types inherited from fc::temp_file_base
typedef std::optional< fc::pathpath_t
 
- Protected Member Functions inherited from fc::temp_file_base
 temp_file_base (const path_t &path)
 
 temp_file_base (path_t &&path)
 
- Protected Attributes inherited from fc::temp_file_base
path_t _path
 

Detailed Description

Class which creates a temporary directory inside an existing temporary directory.

Definition at line 223 of file filesystem.hpp.

Constructor & Destructor Documentation

◆ temp_directory() [1/2]

fc::temp_directory::temp_directory ( temp_directory && other)

Definition at line 426 of file filesystem.cpp.

427 : temp_file_base(std::move(other._path))
428 {
429 }
temp_file_base(const path_t &path)

◆ temp_directory() [2/2]

fc::temp_directory::temp_directory ( const fc::path & tempFolder = fc::temp_directory_path())

Definition at line 416 of file filesystem.cpp.

418 {
419 if (fc::exists(*_path))
420 {
421 FC_THROW( "Name collision: ${path}", ("path", _path->string()) );
422 }
424 }
const mie::Vuint & p
Definition bn.cpp:27
#define FC_THROW( ...)
bool exists(const path &p)
void create_directories(const path &p)
path unique_path()
Here is the call graph for this function:

Member Function Documentation

◆ operator=()

temp_directory & fc::temp_directory::operator= ( temp_directory && other)

Definition at line 431 of file filesystem.cpp.

432 {
433 if (this != &other)
434 {
435 remove();
436 _path = std::move(other._path);
437 }
438 return *this;
439 }
Here is the call graph for this function:

The documentation for this class was generated from the following files: