[Insight-developers] Nag nag no std::cout or std::cerr...
Will Schroeder
will.schroeder@kitware.com
Mon, 03 Dec 2001 15:00:23 -0500
Hi Folks-
I've gone through the code and am removing all std::cout and std::cerr in Insight/Code. Please remember to use:
itkDebugMacro(<<"This is debug stuff"); //if m_Debug is set via itk::Object::DebugOn() then it prints
itkWarningMacro(<<"Warning but not fatal");
itkErrorMacro(<<"Something really bad has happened");
and if the class does not support the method GetNameOfClass() (i.e., does not have a itkTypeMacro() in the .h file), then use
itkGenericOutputMacro(<<"This is output");
Find the implementation if you are curious in Common/itkMacro.h.
Violators will be persecuted to the fullest extent of the law.
Will