Determining object's class name at runtime
Eilmsteiner Reinhard
r.eilmsteiner@paysafecard.com
Wed Feb 5 15:02:00 GMT 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi!
Is there a way (with gcc 3.2) to determine the class name of an object at
runtime? Or moreover ist pedigree?
Something like:
...
class A;
class B: public A;
...
A* pA;
...
pA->GetClassName (); or CLASSNAME (pA);
and
pA->IsKindOf("A"); or ISKINDOF(pA, "A");
Thx,
Reinhard Eilmsteiner
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
iQA/AwUBPkEngFaO5+5ahqodEQINlQCcDVuSVmypnQdg1SdrIKBIeTBK3vUAn0e/
uUCrJokIySjDbf9oA979JUtp
=RQCR
-----END PGP SIGNATURE-----
More information about the Gcc-help
mailing list