public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Determining object's class name at runtime
@ 2003-02-05 15:02 Eilmsteiner Reinhard
  2003-02-05 15:49 ` John Love-Jensen
  0 siblings, 1 reply; 2+ messages in thread
From: Eilmsteiner Reinhard @ 2003-02-05 15:02 UTC (permalink / raw)
  To: 'gcc-help@gcc.gnu.org'

 
-----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-----

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-02-05 15:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-05 15:02 Determining object's class name at runtime Eilmsteiner Reinhard
2003-02-05 15:49 ` John Love-Jensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).