RStudio Launcher Plugin SDK  1.1.3
A software development kit for creating plugins that work the the RStudio Launcher.
Public Member Functions | List of all members
rstudio::launcher_plugins::system::RemoveOnExitScope Class Reference

RAII class for restoring the current working directory. More...

#include <FilePath.hpp>

Inheritance diagram for rstudio::launcher_plugins::system::RemoveOnExitScope:
rstudio::launcher_plugins::Noncopyable

Public Member Functions

 RemoveOnExitScope (FilePath in_restorePath, ErrorLocation in_location)
 Constructor. More...
 
virtual ~RemoveOnExitScope ()
 Destructor. Removes the path that was provided in the constructor from the filesystem.
 

Detailed Description

RAII class for restoring the current working directory.

Constructor & Destructor Documentation

◆ RemoveOnExitScope()

rstudio::launcher_plugins::system::RemoveOnExitScope::RemoveOnExitScope ( FilePath  in_restorePath,
ErrorLocation  in_location 
)

Constructor.

Parameters
in_restorePathThe path to which to restore the current working directory on destruction of this object.
in_locationThe location where this object was constructed, for logging purposes.

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