KiCad PCB EDA Suite
Loading...
Searching...
No Matches
KI_TEST::TEMPORARY_DIRECTORY Class Reference

A temporary directory that will be deleted when it goes out of scope. More...

Public Member Functions

 TEMPORARY_DIRECTORY (const std::string &aNamePrefix, const std::string aSuffix)
 Create a temporary directory with a given prefix and suffix.
 
 ~TEMPORARY_DIRECTORY ()
 
const std::filesystem::path & GetPath () const
 

Private Attributes

std::filesystem::path m_path
 

Detailed Description

A temporary directory that will be deleted when it goes out of scope.

Definition at line 133 of file board_test_utils.cpp.

Constructor & Destructor Documentation

◆ TEMPORARY_DIRECTORY()

KI_TEST::TEMPORARY_DIRECTORY::TEMPORARY_DIRECTORY ( const std::string &  aNamePrefix,
const std::string  aSuffix 
)
inline

Create a temporary directory with a given prefix and suffix.

The directory will be created in the system temporary directory, and will not be pre-existing.

Definition at line 140 of file board_test_utils.cpp.

References m_path.

◆ ~TEMPORARY_DIRECTORY()

KI_TEST::TEMPORARY_DIRECTORY::~TEMPORARY_DIRECTORY ( )
inline

Definition at line 160 of file board_test_utils.cpp.

References m_path.

Member Function Documentation

◆ GetPath()

const std::filesystem::path & KI_TEST::TEMPORARY_DIRECTORY::GetPath ( ) const
inline

Definition at line 162 of file board_test_utils.cpp.

References m_path.

Referenced by KI_TEST::LoadAndTestBoardFile(), and KI_TEST::LoadAndTestFootprintFile().

Member Data Documentation

◆ m_path

std::filesystem::path KI_TEST::TEMPORARY_DIRECTORY::m_path
private

Definition at line 165 of file board_test_utils.cpp.

Referenced by GetPath(), TEMPORARY_DIRECTORY(), and ~TEMPORARY_DIRECTORY().


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