//--------------------------------------------------------------------
-void clitk::FilterBase::StartNewStep(std::string s)
+void clitk::FilterBase::StartNewStep(std::string s, bool endl)
{
if (Cancelled()) {
throw clitk::ExceptionObject("Filter is canceled.");
m_CurrentStepName = "Step "+GetCurrentStepId()+" -- "+s;
if (GetVerboseStepFlag()) {
- std::cout << m_CurrentStepName << std::endl;
+ std::cout << m_CurrentStepName;
+ if (endl) std::cout << std::endl;
//"Step " << GetCurrentStepId() << " -- " << s << std::endl;
}
}
protected:
FilterBase();
virtual ~FilterBase() {}
- void StartNewStep(std::string s);
+ void StartNewStep(std::string s, bool endl=true);
template<class TInternalImageType>
void StopCurrentStep(typename TInternalImageType::Pointer p, std::string txt="");
void StopCurrentStep();