Hi Satoru, Hi Stanislav,
You had convincing arguments. In CVS, I have now implemented:
There are now two ways to detect if a file is open:
TFile f("myfile.hbook");
if (f.IsOpen()); //if true f has been open successfully
if (f.IsZombie()); //if true f cannot be used
Rene Brun
On Tue, 22 Oct 2002, Stanislav NESTEROV wrote:
>
> Hi Satoru,
> I must admit there is no way to do this (even through hacks or I've
> missed smthn?). I think we need to ask Rene to implement some security
> code for this class. Anyway it is very useful interface and some
> attention to it from the developers' side would be great. (I know ROOT
> team is not going to develope HBOOK interface.)
>
> So, Rene, would you be so kind to include some code to be sure that
> Hbook file is open?
>
> Best regards,
> Stanislav.
> On Tue, 22 Oct 2002, Satoru KAMEOKA wrote:
>
> > Dear all,
> >
> > THbookFile class, which is available on version 3.03/8, is useful.
> > But IsOpen() method seems not implemented.
> > Is there any good way to detect file open error in scripts ?
> >
> > Regards,
> > Satoru Kameoka
> >
> >
>
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:15 MET