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