API 4.4.1-2022-10-19-2c4045e59
For MATLAB, Python, Java, and C++ users
OpenSim::FileRemover Class Reference

When an instance of this class is destructed, it removes (deletes) the file at the path provided in the constructor. More...

Public Member Functions

 FileRemover (std::string filepath)
 
void remove () const
 Remove the file at the path provided in the constructor. More...
 
 ~FileRemover ()
 This invokes remove(). More...
 

Detailed Description

When an instance of this class is destructed, it removes (deletes) the file at the path provided in the constructor.

You can also manually cause removal of the file by invoking remove().

Constructor & Destructor Documentation

◆ FileRemover()

OpenSim::FileRemover::FileRemover ( std::string  filepath)
inline

◆ ~FileRemover()

OpenSim::FileRemover::~FileRemover ( )
inline

This invokes remove().

Member Function Documentation

◆ remove()

void OpenSim::FileRemover::remove ( ) const
inline

Remove the file at the path provided in the constructor.


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