ROOT, streamer, and multiple inheritance
GENTIT Francois-Xavier DAPNIA (GENTIT@DAPNIA.CEA.FR)
Fri, 2 Oct 1998 13:36:40 +0200
Hello rooters,
I am a little bit confused about the streamer function associated
with multiple inheritance. My understanding was that one has NOT to
write a streamer function when a class inherits from TObject, and that
one HAS to write it when it does not inherit from TObject. Now take the
class TSHAPE, for instance. It has multiple inheritance from classes
TNamed, TAttLine and TAttFill.
As TNamed inherits from TObject, I find normal that there is no
streamer function in the source code of TNamed. But TAttLine and
TAttFill do not inherit from TObject, and there is no streamer function
in the source code of TAttFill and TAttLine. Is the dictionnary
generator so smart that it is enough that only one of the 3 classes
building TShape inherits from TObject to generate a correct streamer
function for TShape ?
Thanks for your help.
F.X. Gentit
DAPNIA/SPP CEN Saclay
tel : 01 69 08 30 38