File indexing completed on 2026-09-16 09:17:56
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #ifndef Message_ProgressSentry_HeaderFile
0015 #define Message_ProgressSentry_HeaderFile
0016
0017 #include <Message_ProgressScope.hxx>
0018
0019
0020
0021
0022 class Standard_DEPRECATED("Deprecated class, Message_ProgressScope should be used instead")
0023 Message_ProgressSentry : public Message_ProgressScope
0024 {
0025 public:
0026
0027 Message_ProgressSentry(const Message_ProgressRange& theRange,
0028 const char* const theName,
0029 const double theMin,
0030 const double theMax,
0031 const double theStep,
0032 const bool theIsInf = false,
0033 const double theNewScopeSpan = 0.0)
0034 : Message_ProgressScope(theRange, theName, theMax, theIsInf)
0035 {
0036 if (theMin != 0.0 || theStep != 1.0 || theNewScopeSpan != 0.0)
0037 {
0038 throw Standard_ProgramError("Message_ProgressSentry, invalid parameters");
0039 }
0040 }
0041
0042
0043 void Relieve() { Close(); }
0044
0045 private:
0046
0047 Message_ProgressSentry(const occ::handle<Message_ProgressIndicator>& theProgress,
0048 const char* const theName,
0049 const double theMin,
0050 const double theMax,
0051 const double theStep,
0052 const bool theIsInf = false,
0053 const double theNewScopeSpan = 0.0);
0054 };
0055
0056 #endif