MeVisLabToolboxReference
|
00001 #ifndef __XVStatus_H 00002 #define __XVStatus_H 00003 //---------------------------------------------------------------------------------- 00004 // **InsertLicense** code 00005 //---------------------------------------------------------------------------------- 00007 00012 //---------------------------------------------------------------------------------- 00013 00014 #ifndef __InventorWrapperDllInit_H 00015 #include "InventorWrapperDllInit.h" 00016 #endif 00017 00019 typedef int InvBreakCheckCB(); 00020 00021 //============================================================= 00024 //============================================================= 00025 class INVENTORWRAPPER_API XVStatus 00026 { 00027 public: 00029 static void updateProgress(const char* info1, const char* info2); 00030 00032 static void setBreakCheckCallback(InvBreakCheckCB* cb) { _breakCallback = cb; }; 00033 00035 static bool wasAborted(); 00036 00038 static void setWasAborted(bool flag); 00039 00041 static void setAbortIsHandled(bool flag); 00042 00044 static bool abortIsHandled(); 00045 00046 private: 00048 static InvBreakCheckCB* _breakCallback; 00049 00052 static bool shouldTerminate(); 00053 00054 static bool _wasAborted; 00055 static bool _abortIsHandled; 00056 }; 00057 00058 #endif