Re: [ROOT] Pb with custom streamer in v3

From: Damir Buskulic (buskulic@lapp.in2p3.fr)
Date: Thu Nov 30 2000 - 11:15:35 MET


Yes, it works, thanks fons.

Damir

Fons Rademakers wrote:
> 
> Hi Damir,
> 
>    thanks for finding this bug. We'll fix it. As work around could you
> try to flag this datamember as being not persistent (add ! in comment field, like:
> TObjArray **mFileHashTable;  //! don't save).
> 
> Let me know if this workaround works.
> 
> Cheers, Fons.
> 
> On Thu, Nov 30, 2000 at 10:45:27AM +0100, Damir Buskulic wrote:
> > Hi,
> >
> > I'm trying to recompile my code with the dev version 3 of ROOT. I have a
> > problem with one of my custom streamers. The corresponding class
> > contains an array of pointers to objects (TObjArray** mFilesHashTable).
> > So in the previous versions of ROOT I was using a custom streamer to
> > handle this array.
> > The problem with the new version is that, even with the option "-" in
> > LinkDef.h and the streamer not generated, there is a (utility ?)
> > function generated called
> >
> > void R__VHashTable_mFilesHashTable(TBuffer &, char *)
> >
> > What's this new beast ?
> >
> > This function generates an error at compile time :
> >
> > VEGA_G_Database.cc: In function `void
> > R__VHashTable_mFilesHashTable(TBuffer &, char *)':
> > VEGA_G_Database.cc:378: no match for `TBuffer & >> TObjArray **&'
> > /home/buskulic/root/include/TBuffer.h:278: candidates are: class TBuffer
> > & TBuffer::operator >>(Char_t &)
> > /home/buskulic/root/include/TBuffer.h:340:                 class TBuffer
> > & TBuffer::operator >>(UChar_t &)
> >
> > and so on......
> >
> > Is there a way to overcome this problem ? Arrays of pointers to objects
> > should be handled properly. If not, I'll have to switch to a TObjArray
> > of TObjArray's or vector<TObjArray*> but for backward compatibility, I
> > would prefer not
> >
> > Cheers
> >
> > Damir
> > --
> > =====================================================================
> > | Damir Buskulic                  | Universite de Savoie/LAPP       |
> > |                                 | Chemin de Bellevue, B.P. 110    |
> > | Tel : +33 (0)450091600          | F-74941 Annecy-le-Vieux Cedex   |
> > | e-mail: buskulic@lapp.in2p3.fr  | FRANCE                          |
> > =====================================================================
> > mailto:buskulic@lapp.in2p3.fr
> 
> --
> Org:    CERN, European Laboratory for Particle Physics.
> Mail:   1211 Geneve 23, Switzerland
> E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
> WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7677910

-- 
=====================================================================
| Damir Buskulic                  | Universite de Savoie/LAPP       |
|                                 | Chemin de Bellevue, B.P. 110    |
| Tel : +33 (0)450091600          | F-74941 Annecy-le-Vieux Cedex   |
| e-mail: buskulic@lapp.in2p3.fr  | FRANCE                          |
=====================================================================
mailto:buskulic@lapp.in2p3.fr



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:38 MET