Hi Joe, > Class B:public A,TObject you should never use such kind of inheritance, if you want to use I/O or CINT. The correct one is: Class B: public TObject,A Victor joer00@bellsouth.net wrote: > > 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 -- Victor M. Perevoztchikov perev@bnl.gov perev@vxcern.cern.ch Brookhaven National Laboratory MS 510A PO Box 5000 Upton NY 11973-5000 tel office : 631-344-7894; fax 631-344-4206; home 631-345-2690
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:39 MET