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

From: joe robe (joer00@yahoo.com)
Date: Tue Jan 22 2002 - 14:44:20 MET


Hi Rooters,

I tracked down my problems I had with reading/writing
my custom classes with new root version to at least
one mistake I made. Just I dont no the solution !!

My custom classes all inherit from a base Object,
TJoeObject which has some generic error handling and
grahpical stuff (virtual functions to "visualize"
classes). This TJoeObject class has a few data mebmers
but there is no need to save them on disk, so this
base class was NOT inheriting from TObject and I was
not creating a dictionary file. This worked in an MSVC
project with old root version.

I tried it now with cint and I get error messages that
all the TJoeObject root methods (Streamer etc) are
missing. Well of course, the class tries to call the
Streamer method of its base class etc. which is not
available !

So I changed my base class to Inherit from TObject but
now I have the problem that many of my custom classes
also inherit from some root classes (i.e. TVector)
which inherit also from TObject so I get now an error,
that the correct base class cant be found.

How can I solve this problem ? I have approx. 100
custom classes and adding to each the methods of my
old TJoeObejct would be hard work and I still could
not call virtual functions of TJoeObject !

One way of course would be to add my stuff into ROOT
TObject and recompile. But I really dont want to mess
up thinks inside ROOT!

Any other way ?

Joe


__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/



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