OpenSim Moco  0.4.0
Public Member Functions | List of all members
OpenSim::FileDeletionThrower Class Reference

Description

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.

#include <Moco/Moco/MocoUtilities.h>

Public Member Functions

 FileDeletionThrower (std::string filepath)
 
void throwIfDeleted () const
 

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