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::ScopedDir Class Reference

#include <path.hpp>

Public Member Functions

 ScopedDir (qi::Path path=qi::Path())
 
 ~ScopedDir ()
 Remove the directory. More...
 
 operator qi::Path () const
 Implicit conversion operator to qi::Path. More...
 
const qi::Pathpath () const
 Get the full path to the directory created. More...
 

Detailed Description

Create a temporary directory that will be removed once you quit the scope

Definition at line 141 of file path.hpp.

Constructor & Destructor Documentation

qi::path::ScopedDir::ScopedDir ( qi::Path  path = qi::Path())

Give a path to the constructor to specifed where you want the directory to be created Otherwise qi::os::mktmpdir will be used to create the directory

qi::path::ScopedDir::~ScopedDir ( )

Remove the directory.

Member Function Documentation

qi::path::ScopedDir::operator qi::Path ( ) const

Implicit conversion operator to qi::Path.

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

Get the full path to the directory created.


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