How can I tell if a class is abstract?

I have a TClass to a class. I want to know if it is abstract. i.e. I want to do something like the following:

TClass *c = gROOT->GetClass(“TString”);
if ((c->Property() & kIsAbstract) == 1) {
cout << “TString is abstract” << endl;

What is the test? I couldn’t figure it out…

If it makes any differences, I only care about pre-compiled classes (either in the ROOT distribution or loaded in in another so).


if (gROOT.GetClass("TString")->Property() & kIsAbstract) { //I am an abstract class }
ie, test for not equal 0 instead of equal 1


Wow. That was a rookie mistake on my part! Thanks! -Gordon.