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* name =
nullptr) { (void)name; }
34 virtual void end() { }
39 virtual bool wasInterrupted(
int percent = -1) { (void)percent;
return false; }
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 void start(const char *name=nullptr)
Definition: NullInterrupter.h:32
virtual void end()
Signal the end of an interruptible operation.
Definition: NullInterrupter.h:34
Definition: Exceptions.h:13
virtual bool wasInterrupted(int percent=-1)
Definition: NullInterrupter.h:39
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:121
#define OPENVDB_USE_VERSION_NAMESPACE
Definition: version.h.in:212