Re: [ROOT] CINT/DataMbr

Date: Thu Sep 02 2004 - 00:37:18 MEST


> So, I am looking for a way to grab the value of fNpfix, as long
> as I have the Class name (TMinuit for example), an instance and
> the name of the member (fNpfix in the example case).

Yes, this can be done. PyROOT uses it to grant access to public data
members. Please have a look at: root/pyroot/src/PropertyHolder.cxx. You
can use the TDataMember info that you get from your TClass to calculate
the offset from the instance pointer.

--   --   --

"Stop making excuses for your software."    --first step towards quality

This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:09 MET