Valeriy Onuchin wrote: > > Hello Rooters! > > I have a class MyDirClass inherited from TDirectory > and tree structure of such objects in TFile. > Written once this file can not be read again. > > The possible solution of this problem > in correction of TObject::Write() (see TObject source) > > substituting the string > > if (IsA() == TDirectory::Class()) { > > by > if (InheritsFrom("TDirectory")) { > will be more efficient with: if (InheritsFrom("Tdirectory::Class)) We never tested classes derived from TDirectory. Let us know if it works. This could have interesting applications.. Rene Brun
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:33 MET