33 #ifndef OPENVDB_UTIL_NULL_INTERRUPTER_HAS_BEEN_INCLUDED 34 #define OPENVDB_UTIL_NULL_INTERRUPTER_HAS_BEEN_INCLUDED 36 #include <openvdb/version.h> 58 void start(
const char* name = NULL) { (void)name; }
67 inline bool wasInterrupted(
int percent = -1) { (void)percent;
return false; }
76 inline bool wasInterrupted(T* i,
int percent = -1) {
return i && i->wasInterrupted(percent); }
86 #endif // OPENVDB_UTIL_NULL_INTERRUPTER_HAS_BEEN_INCLUDED NullInterrupter()
Default constructor.
Definition: NullInterrupter.h:55
bool wasInterrupted(int percent=-1)
Definition: NullInterrupter.h:67
bool wasInterrupted(T *i, int percent=-1)
Definition: NullInterrupter.h:76
void end()
Signal the end of an interruptible operation.
Definition: NullInterrupter.h:60
#define OPENVDB_VERSION_NAME
The version namespace name for this library version.
Definition: version.h:136
Definition: Exceptions.h:40
#define OPENVDB_USE_VERSION_NAMESPACE
Definition: version.h:188
void start(const char *name=NULL)
Definition: NullInterrupter.h:58
Dummy NOOP interrupter class defining interface.
Definition: NullInterrupter.h:52