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

From: joer00@bellsouth.net
Date: Wed Jan 23 2002 - 17:17:24 MET


Rene,

just to be 100 % sure now, from you posts this should work: (if yes just asnwer yes to save time, if no please explain because it than cotradicts with your provious posts !)

Class A does NOT deriver from TObject, does NOT define the ClassDef macros and has NO streamer. It HAS datamemebers which I do NOT want/need to write to disk.

Class B:public A,TObject

DOES deriver from TObject, DOES implement ClassDef, HAS a dictionary file,HAS data members which need to be written to disk.

BObject->Write("NAME"); and
BObject=(B*)SomeFile->Get("Name");

 WILL work although base class does NOT deriver from TObject and has no streamer !

Joe



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