38 #ifndef OME_BIOFORMATS_TIFF_SENTRY_H
39 #define OME_BIOFORMATS_TIFF_SENTRY_H
44 #include <boost/thread.hpp>
116 error(
const std::string& message)
const;
133 boost::lock_guard<boost::recursive_mutex>
lock;
160 #endif // OME_BIOFORMATS_TIFF_SENTRY_H
Memory type substitution.
static void errorHandler(const char *module, const char *fmt, va_list ap)
libtiff error handler.
Definition: Sentry.cpp:98
~Sentry()
Destructor.
Definition: Sentry.cpp:154
Sentry()
Constructor.
Definition: Sentry.cpp:147
static boost::recursive_mutex tiff_mutex
Mutex to lock libtiff access.
Definition: Sentry.h:130
Open Microscopy Environment C++ implementation.
Definition: CoreMetadata.cpp:40
void setMessage(std::string const &message)
Set the latest error message.
Definition: Sentry.cpp:160
Sentry for saving and restoring libtiff state.
Definition: Sentry.h:73
std::string const & getMessage() const
Get the latest error message.
Definition: Sentry.cpp:166
boost::lock_guard< boost::recursive_mutex > lock
Acquired lock on tiff_lock.
Definition: Sentry.h:133
std::string message
Last error message.
Definition: Sentry.h:136
void error() const
Throw an Exception.
Definition: Sentry.cpp:181