wex v24.10.0
Public Member Functions | List of all members
wex::temp_filename Class Reference

Offers a class to generate temp filename, and access it's name. More...

#include <wex/core/temp-filename.h>

Public Member Functions

 temp_filename (bool cleanup=false)
 Default constructor, generates the temp filename.
 
 ~temp_filename ()
 Destructor, removes the temp file if asked for, and file exists.
 
const auto & name () const
 Returns the name (fullpath) of the temp file.
 

Detailed Description

Offers a class to generate temp filename, and access it's name.

If asked for, also removes this file.

Constructor & Destructor Documentation

◆ temp_filename()

wex::temp_filename::temp_filename ( bool cleanup = false)
explicit

Default constructor, generates the temp filename.

It just generates the filename, creating the file is not done.