[ROOT] lost enum

From: Axel Naumann (axel-naumann@gmx.de)
Date: Wed Jul 10 2002 - 14:10:23 MEST


Hi,

first, the versions: yesterday's cvs, Win2k, MSVC 6.

root [0] gClassTable->Init(); while (c=gClassTable->Next()) if (strstr(c,
"EProperty")) printf("---%s---\n",c);
root [1] ((TList*)gROOT->GetListOfClasses())->FindObject("EProperty")

This gives me '(const class TObject*)0x0' as output. So it doesn't find
EProperty (an enum defined in TDictionary.h) in gClassTable (makes sense, as
enums don't have ClassDefs) nor in gROOT's list of classes. I know I can
call
    gROOT->GetClass("EProperty");
first - but I want to loop over all available classes, i.e. I don't know
there is a TClass called "EProperty".

Any suggestion on how to find EProperty?

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:50:59 MET