[Insight-developers] this->GetClassName() in DebugMacro ??
Bill Hoffman
bill.hoffman at kitware.com
Sun Sep 17 17:53:31 EDT 2000
The RTTI version of get name may or may not return a human readable
string. All classes should use the itkTypeMacro. Once the dashboard is
set up and we have style checking, things like this should be caught
at check in.
At 04:56 PM 9/16/00 -0400, Luis Ibanez wrote:
>Hi,
>
>I'm getting some complains from the compiler
>concerning the absence of the method
>
> GetClassName()
>
>in itkFilterImageGaussian class.
>
>Seems that "GetMacro" in its "DebugMacro"
>expects that all the Insight classes should
>have a GetClassName() static method.
>
>Nevertheless, among the classes in the repository only
>
>- itkIndent
>- itkLightObject
>- itkExceptionObject
>
>have such a method.
>
>Is this something that we should declare for each class ?
>
>Why only some of them have it ?
>
>It is not redundant to have a GetClassName method, when
>the Run Time Type Information is available ?
>
>
>Thanks
>
>Luis
>
>_______________________________________________
>Insight-developers mailing list
>Insight-developers at public.kitware.com
>http://public.kitware.com/mailman/listinfo/insight-developers
More information about the Insight-developers
mailing list