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

Referenced by operator=(), and SCOPED_TEMP_PATH().

◆ 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 930 of file gestfich.cpp.

References m_path.

Member Function Documentation

◆ MakeDirectory()

bool SCOPED_TEMP_PATH::MakeDirectory ( const wxString & aPrefix)

Create an empty directory with a unique name after aPrefix.

Definition at line 946 of file gestfich.cpp.

References m_path, and MakeFile().

Referenced by 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 939 of file gestfich.cpp.

References m_path.

Referenced by 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

Definition at line 75 of file gestfich.h.

References m_path.

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

Member Data Documentation

◆ m_path

wxString SCOPED_TEMP_PATH::m_path
private

Definition at line 78 of file gestfich.h.

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


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