+
+//--------------------------------------------------------------------
+void clitk::FilterBase::SetMustStop(bool b)
+{
+ m_MustStop = b;
+ if (GetMustStop()) {
+ SetLastError("Filter is interrupted.");
+ }
+}
+//--------------------------------------------------------------------
+
+
+//--------------------------------------------------------------------
+bool clitk::FilterBase::GetMustStop()
+{
+ if (m_MustStop) return true;
+ if (HasError()) return true;
+ return false;
+}
+//--------------------------------------------------------------------
+
+