So my question is concerning the case were you have
public data members and you access them through
the dictionary in TDataMember. The problem is that
looking in this class I can set values to data members
only with TMethodCall but its a bit funny to write
Set methods for public data. So I see that ShowMembers
function has access to the fields addresses but how can
I get this addresses also?
GetOffset ()
Out of curiosity, what are you tring to accomplish?
Cheers,
Philippe.
if you have structure:
struct fortran77
{
Char_t* CHARACTER;
Int_t INTEGER;
Float_t REAL;
Double_t DOUBLE_PRECISION;
};
and then lets say array struct fortran77[90] and you want to write
table of TGNumberEntries:
CHARACTER INTEGER REAL DOUBLE_PRECISION
1
2
3
…
90
take the values and pass them to some other routine
so the number of columns is the number of fields
so looping with TList thats done automatically if I add
another field let say struct fortran77 RECORD and according
to the http://pcroot.cern.ch/TaligentDocs/TaligentOnline/DocumentRoot/1.0/Docs/books/WM/WM_45.html#0
you want to avoid Get and Set methods (funny names READ and WRITE are much better:)