Fons Rademakers <Fons.Rademakers@cern.ch> writes: > Hi Jiri, > > the TWebFile, TNetFile and TRFIOFile all derive from TFile, but they > are not a TFile. To create any of these objects one should use the static > method TFile::Open(). This method returns one of the above objects depending > on the filename specified. Since all these objects derive from and have > the same interface as TFile, Open() returns a pointer to TFile. However, > the networked files have not the same size as TFile and therefore cannot > be created in the TFile ctor (also not all broken links are RFIO files). > The best is to use everywhere TFile::Open() in your macros. > > I agree that the use of TFile::Open() should be mentioned in all TFile > derived ctors. > > Cheers, Fons. > Hi Fons, thank you for your answer. I was mistaken - with the current inheritance tree the common method for opening files can't be the TFile ctor. Be it TFile::Open, what is wrong with trying to open a TRFIOFile object when a broken link is presented to TFile::Open? Are broken symlinks used for anything else but RFIO? They could be followed only optionally to rfiod. Can RFIO files be chained in TChains? Cheers, Jiri
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:26 MET