Sentry for saving and restoring libtiff state.
Definition: Sentry.h:73
std::string const & getMessage() const
Get the latest error message.
Definition: Sentry.cpp:172
void error() const
Throw an Exception.
Definition: Sentry.cpp:187
boost::lock_guard< boost::recursive_mutex > lock
Acquired lock on tiff_lock.
Definition: Sentry.h:133
~Sentry()
Destructor.
Definition: Sentry.cpp:160
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
static boost::recursive_mutex tiff_mutex
Mutex to lock libtiff access.
Definition: Sentry.h:130
Sentry()
Constructor.
Definition: Sentry.cpp:153