KiCad PCB EDA Suite
Loading...
Searching...
No Matches
SCOPED_TEMP_PATH Class Reference

A temporary file or directory that is removed when the object goes out of scope. More...

#include <gestfich.h>

Public Member Functions

 SCOPED_TEMP_PATH ()=default
 
 SCOPED_TEMP_PATH (const SCOPED_TEMP_PATH &)=delete
 
SCOPED_TEMP_PATH & operator= (const SCOPED_TEMP_PATH &)=delete
 
 ~SCOPED_TEMP_PATH ()
 
bool MakeFile (const wxString &aPrefix)
 Create an empty file with a unique name after aPrefix.
 
bool MakeDirectory (const wxString &aPrefix, int aPermissions=wxS_DIR_DEFAULT)
 Create an empty directory with a unique name after aPrefix.
 
const wxString & Path () const
 

Private Attributes

wxString m_path
 

Detailed Description

A temporary file or directory that is removed when the object goes out of scope.

Definition at line 61 of file gestfich.h.

Constructor & Destructor Documentation

◆ SCOPED_TEMP_PATH() [1/2]

SCOPED_TEMP_PATH::SCOPED_TEMP_PATH ( )
default

◆ SCOPED_TEMP_PATH() [2/2]

SCOPED_TEMP_PATH::SCOPED_TEMP_PATH ( const SCOPED_TEMP_PATH & )
delete

References SCOPED_TEMP_PATH().

◆ ~SCOPED_TEMP_PATH()

SCOPED_TEMP_PATH::~SCOPED_TEMP_PATH ( )

Definition at line 943 of file gestfich.cpp.

References m_path.

Member Function Documentation

◆ MakeDirectory()

bool SCOPED_TEMP_PATH::MakeDirectory ( const wxString & aPrefix,
int aPermissions = wxS_DIR_DEFAULT )

Create an empty directory with a unique name after aPrefix.

On POSIX, aPermissions sets the access mode, subject to the process umask.

Definition at line 959 of file gestfich.cpp.

References m_path, MakeFile(), Path(), path, and SCOPED_TEMP_PATH().

Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), GenerateIpc2581File(), generateOneODBPackage(), and operator=().

◆ MakeFile()

bool SCOPED_TEMP_PATH::MakeFile ( const wxString & aPrefix)

Create an empty file with a unique name after aPrefix.

Definition at line 952 of file gestfich.cpp.

References m_path.

Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), GenerateIpc2581File(), MakeDirectory(), and operator=().

◆ operator=()

SCOPED_TEMP_PATH & SCOPED_TEMP_PATH::operator= ( const SCOPED_TEMP_PATH & )
delete

◆ Path()

const wxString & SCOPED_TEMP_PATH::Path ( ) const
inline

Member Data Documentation

◆ m_path

wxString SCOPED_TEMP_PATH::m_path
private

Definition at line 79 of file gestfich.h.

Referenced by MakeDirectory(), MakeFile(), Path(), and ~SCOPED_TEMP_PATH().


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