Pointer to class data member via TClass

Dear all,

i have a class derived from TObject with dictionary created. I can use TClass to get the type of a data member via TDataMember, however i need to get also a pointer to that data memeber.
Basically my goal is to get the type and the memory address of a data member using only a string for its name, since i need to init these data memebers on demand. Is this possible within root ?

Thanks a lot!

Best regards,
Max

Hi,

[quote]I can use TClass to get the type of a data member via TDataMember, [/quote]TDataMember also offers the offset of the data member (GetOffset).

Cheers,
Philippe.