This class helps a user cause an exception within the code.
More...
This class helps a user cause an exception within the code.
The constructor writes a file, and the destructor deletes the file. The programmer can call throwIfDeleted() to throw the FileDeletionThrowerException exception if the file is deleted (by a user) before the object is destructed. If the file could not be written by the constructor, then throwIfDeleted() does not throw an exception.
◆ FileDeletionThrower() [1/2]
OpenSim::FileDeletionThrower::FileDeletionThrower |
( |
| ) |
|
|
inline |
◆ FileDeletionThrower() [2/2]
OpenSim::FileDeletionThrower::FileDeletionThrower |
( |
std::string |
filepath | ) |
|
|
inline |
◆ ~FileDeletionThrower()
OpenSim::FileDeletionThrower::~FileDeletionThrower |
( |
| ) |
|
|
inline |
◆ throwIfDeleted()
void OpenSim::FileDeletionThrower::throwIfDeleted |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file:
- OpenSim/Moco/MocoUtilities.h