hi,
quick question:
how can I know, in a named script, if a user defined class
exists?
For eg, I define a class like the one on page 81 of the
Root's User Guide v0.6.1:
---
root [0] .L script4.C
root [1] TMyClass *a = new TMyClass
root [2] .x tempA.C
No
root [3].! cat tempA.C
#include <iostream>
void tempA()
{
if(gROOT->GetClass("TMyClass")) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
in fact:
root [4] gROOT->GetClass("TMyClass")
(class TClass*)0x0
---
If I replace "TMyClass" by any of the output of .class I get
Yes. How should I do this?
I'm using 2.25/00 on IRIX64.
Thanks a lot,
Sebastian
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:35 MET