API  4.4
For C++ developers
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()

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: