6 #ifndef OPENVDB_UTIL_NULL_INTERRUPTER_HAS_BEEN_INCLUDED 7 #define OPENVDB_UTIL_NULL_INTERRUPTER_HAS_BEEN_INCLUDED 9 #include <openvdb/version.h> 32 virtual void start(
const char* =
nullptr) { }
34 virtual void end() { }
49 inline bool wasInterrupted(T* i,
int percent = -1) {
return i && i->wasInterrupted(percent); }
56 #endif // OPENVDB_UTIL_NULL_INTERRUPTER_HAS_BEEN_INCLUDED bool wasInterrupted(T *i, int percent=-1)
Definition: NullInterrupter.h:49
Base class for interrupters.
Definition: NullInterrupter.h:25
virtual bool wasInterrupted(int=-1)
Definition: NullInterrupter.h:39
virtual void start(const char *=nullptr)
Definition: NullInterrupter.h:32
virtual void end()
Signal the end of an interruptible operation.
Definition: NullInterrupter.h:34
Definition: Exceptions.h:13
virtual NullInterrupter & interrupter() final
Convenience method to return a reference to the base class from a derived class.
Definition: NullInterrupter.h:41
#define OPENVDB_VERSION_NAME
The version namespace name for this library version.
Definition: version.h.in:116
#define OPENVDB_USE_VERSION_NAMESPACE
Definition: version.h.in:202