Query CINT symbol table

How do I query the CINT symbol table? And is there a ROOT class interface for it? For example, I start root and execute the following:

Now I want to use a method to find out if CINT knows about the variable x, which it should. Also, what methods can I use to find get the list of names and types of variables that CINT knows about in the current scope.

I am interested in this functionality because I want to execute interpreted code from a file in a compiled executable and then interrogate CINT to see what variables were created and possibly fetch their values.

Any ideas? I cant find anything obvious.


You can use:TGlobal *val = gROOT->GetGlobal("x"); val->GetAddress(); val->GetTypeName();


Wow, how did I miss that one?
Thank you very much :slight_smile: