[ROOT] retrieve an enum's TClass

From: Axel Naumann (axel-naumann@gmx.de)
Date: Thu Nov 28 2002 - 00:12:53 MET


Hi,

I believe I've asked this question before, but I can't retrieve the answer
(brain, web, email: nothing).

How can I get the TClass object corresponding to an enum having the name of
the enum? And: How can I get its "data members" (I think that's what they're
stored as)?

    clEnum=gROOT->GetClass("EProperty")
doesn't work. But supposed I'd have the class, can I do
    clEnum->GetListOfDataMembers()
to get e.g. "kIsNamespace"?

Cheers, Axel.
_____

Axel Naumann, Kath Universiteit Nijmegen / NIKHEF, The Netherlands
Experiment: D0 / Fermilab, USA. Phone: +1 (630) 840 8595
http://www-d0.fnal.gov/nikhef



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:21 MET