Sentry for saving and restoring libtiff state.
Definition: Sentry.h:72
void error() const
Throw an Exception.
Definition: Sentry.cpp:187
static std::recursive_mutex tiff_mutex
Mutex to lock libtiff access.
Definition: Sentry.h:129
~Sentry()
Destructor.
Definition: Sentry.cpp:160
std::string const & getMessage() const
Get the latest error message.
Definition: Sentry.cpp:172
static void errorHandler(const char *module, const char *fmt, va_list ap)
libtiff error handler.
Definition: Sentry.cpp:104
void setMessage(std::string const &message)
Set the latest error message.
Definition: Sentry.cpp:166
std::lock_guard< std::recursive_mutex > lock
Acquired lock on tiff_lock.
Definition: Sentry.h:132
Sentry()
Constructor.
Definition: Sentry.cpp:153