libqi-api  2.8.7.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
qi::path::ScopedFile Class Reference

#include <path.hpp>

Public Member Functions

 ScopedFile (qi::Path filePath=qi::Path())
 
 ~ScopedFile ()
 
const qi::Pathpath () const
 Get the full path to the directory created. More...
 

Detailed Description

Create a temporary path to a file that will be removed once you quit the scope. Becareful it's only a path it's your call to open it to create it

Definition at line 170 of file path.hpp.

Constructor & Destructor Documentation

qi::path::ScopedFile::ScopedFile ( qi::Path  filePath = qi::Path())

Give a path to the constructor to specifed where you want the file to be created. Otherwise the path to the file is construct with qi::os::mktmpdir / "tmpfile" If it already exists it will be remove.

qi::path::ScopedFile::~ScopedFile ( )

Member Function Documentation

const qi::Path& qi::path::ScopedFile::path ( ) const

Get the full path to the directory created.


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