59 const std::filesystem::path&
Path()
const {
return m_path; }
62 wxString
PathStr()
const {
return wxString::FromUTF8(
m_path.string() ); }
85 std::filesystem::path
CreateChildDir(
const wxString& aName )
const;
SCOPED_PROCESS_TEMP_DIR(const wxString &aPrefix)
~SCOPED_PROCESS_TEMP_DIR()
SCOPED_PROCESS_TEMP_DIR(const SCOPED_PROCESS_TEMP_DIR &)=delete
SCOPED_PROCESS_TEMP_DIR & operator=(const SCOPED_PROCESS_TEMP_DIR &)=delete
std::filesystem::path m_path
wxString PathStr() const
Get the path to the temporary directory as a wxString.
SCOPED_TEMP_DIR & operator=(const SCOPED_TEMP_DIR &)=delete
static bool s_anyTempDirRetained
wxString CreateChildFileStr(const wxString &aName) const
Create and return the path to a direct child file as a wxString.
SCOPED_TEMP_DIR(const SCOPED_TEMP_DIR &)=delete
void Retain()
Keep this directory after all.
const std::filesystem::path & Path() const
Get the path to the temporary directory as a std::filesystem::path.
static bool AnyTempDirRetained()
wxString ChildPathStr(const wxString &aName) const
Get the path to a direct child of the temporary directory as a wxString, without creating the child.
wxString CreateChildDirStr(const wxString &aName) const
Create and return the path to a direct child directory as a wxString.
SCOPED_TEMP_DIR(const wxString &aPrefix)
Create a temporary directory with a unique name based on the given prefix.
std::filesystem::path CreateChildFile(const wxString &aName) const
Create and return the path to a direct child file.
std::filesystem::path CreateChildDir(const wxString &aName) const
Create and return the path to a direct child directory.
PROJECT & Project() const
SETTINGS_MANAGER & m_manager
SCOPED_TEMP_PROJECT(SETTINGS_MANAGER &aManager, const wxString &aPrefix, const wxString &aName)
SCOPED_TEMP_PROJECT(const SCOPED_TEMP_PROJECT &)=delete
SCOPED_TEMP_PROJECT & operator=(const SCOPED_TEMP_PROJECT &)=delete
wxString DirStr() const
Get the path to the temporary directory as a wxString.
Container for project specific data.