[Insight-developers] itkEventObject and type_info::before

William A. Hoffman bill.hoffman@kitware.com
Fri, 14 Dec 2001 00:09:17 -0500


At 11:32 PM 12/13/2001 -0500, you wrote:

>Lydia Ng wrote:
> >
> > In "The C++ Programming Language" Stroustrup (3rd ed)
> > section 15.4.4
> >
> > "There is no relation between the relationships defined
> > by before and inheritance relationships"
> >
>
>-----------------
>
>Oops    :-\
>
>
>It looks like I was making up
>a Hammer that fitted my nails...
>
>
>That let us with the binary decision:
>
>1) go back to the enums for events (I guess is what Bill proposed)

No, not really, I propose that we use typeid, but only fire events on exact 
matches.
It is better than enums, because it can be extended without having to edit 
a single .h file
with the enums.   It allows for user events types to be created without 
changing an itk file.


>2) implement an IP-like encoding for events (something to explore)