Re: [ROOT] Multiple inheritance from TObject problem/ old cutoms class read/write problem

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Jan 23 2002 - 08:44:28 MET


Joe,

Once more, let me repeat. To do I/O, your class does not need to derive from
TObject. Your class needs a Streamer function.
The ClassDef macro in your header file will automatically declare the Streamer
function.

Rene Brun

joer00@bellsouth.net wrote:
> 
> Rene,
> 
> > Do not derive your class TJoeObject from TObject
> >
> > Rene
> 
> Thats how my class was designed from the beginning and I thougth this was MY MISTAKE and caused my problems in reading TJoeVector from disk. Is TJoeVector not calling the streamer method for ALL its base classes ? So IF TJoeVector tries to call TJoeObject::Streamer() this will fail because TJoeObject does not have any if it does not deriver from TObject !
> 
> Joe



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:39 MET