Hi,
I've a some classes which are all inherited from the same
base class class_BASE;
There's another class which holds some information and is
"bound" to one of the inherited classes indicated by the member attibute
class_BASE *mElement;
which is set my the constructor.
In a function of that class I need something like
void foo()
{
if ( mElement is of type class_INHERITED_A )
...
else if ( mElement is of type class_INHERITED_B)
...
}
How can I determine the type of this pointer i.e. how can I figure out
which inherited class is represented by mElement?
Thank you.
Chris