How to stream this?

From: Anton Fokin (fokin@tsl.uu.se)
Date: Mon Jan 31 2000 - 11:20:39 MET


Hi,

I would like to stream a structure like this

  Obj1 *--> Obj <--* Obj2

where Obj1 and Obj2 have pointers to the same object Obj. If I stream it in
a "normal" way, Obj1::Streamer() will invoke Streamer() of Obj and
Obj2::Streamer() will do the same. The same happens if I read it back, i.e.
I will get two copies of Obj. I could not find a solution except writing a
numerical id instead of pointers and connecting object after reading. Any
suggestions?

Best,
Anton



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