Dear Rooters
I am just reading the new release notes of root 5.12/02 with warnings regarding io directory.
The ROOT documents have always compared TFile with a UNIX directory, where you can create
directories and subdirectories. Since TDirectory is now declared to be an abstract class,
does this mean that all applications creating subdirectories in TFile will break and be
backward incompatible???
For example, in my application I am creating a directory in the following way:
TDirectory *dir = fFile->GetDirectory(setname);
if (!dir) fFile->mkdir(setname, fType);
fFile->cd(setname);
I suppose this code will break and be backward incompatible. Is this correct?
Furthermore, I have often the follwing code:
TDirectory *savedir = gDirectory;
//do something
savedir->cd();
This will break, too??
Maybe, calling the abstract directory “TBaseDirectory” and deriving “TDirectory” from
"TBaseDirectory" would have avoided these problems?
Best regards
Christian