File indexing completed on 2025-01-18 10:04:17
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 class Standard_DEPRECATED("Deprecated class, Message_ProgressScope should be used instead")
0022 Message_ProgressSentry : public Message_ProgressScope
0023 {
0024 public:
0025
0026 Message_ProgressSentry (const Message_ProgressRange& theRange,
0027 const Standard_CString theName,
0028 const Standard_Real theMin,
0029 const Standard_Real theMax,
0030 const Standard_Real theStep,
0031 const Standard_Boolean theIsInf = Standard_False,
0032 const Standard_Real theNewScopeSpan = 0.0)
0033 : Message_ProgressScope (theRange, theName, theMax, theIsInf)
0034 {
0035 if (theMin != 0.0 || theStep != 1.0 || theNewScopeSpan != 0.0)
0036 {
0037 throw Standard_ProgramError ("Message_ProgressSentry, invalid parameters");
0038 }
0039 }
0040
0041
0042 void Relieve () { Close(); }
0043
0044 private:
0045
0046 Message_ProgressSentry (const Handle(Message_ProgressIndicator)& theProgress,
0047 const Standard_CString theName,
0048 const Standard_Real theMin,
0049 const Standard_Real theMax,
0050 const Standard_Real theStep,
0051 const Standard_Boolean theIsInf = Standard_False,
0052 const Standard_Real theNewScopeSpan = 0.0);
0053 };
0054
0055 #endif