Re: [ROOT] CINT/DataMbr

From: WLavrijsen@lbl.gov
Date: Thu Sep 02 2004 - 00:37:18 MEST


Elias,

> 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.

HTH,
  Wim
-- 
Wim.Lavrijsen@cern.ch   --   WLavrijsen@lbl.gov   --   www.lavrijsen.net

"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