[ROOT] Versioning and kOverwrite

From: Guido Gagliardi (guido.gagliardi@ge.infn.it)
Date: Thu May 06 2004 - 13:10:26 MEST

Hi all,

i am using the key versioning of  objects in TFile. I would like to 
replace objects written with a definite cycle using kOverwrite, like this:


Where rootInquire->getName().c_str() returns something like: 
"application;1" or "application;2"
Everyithing is working fine when the cycle number is 1 and there is only 
one iteration of the object in the TFile, and i got my object in TFile 
replaced as desired. If the number of iterations present in the TFile is 
two, i get this behavior:

before the overwriting of object of cycle 1, in the directory:


after the overwriting:


That is, the key cycle 1 is deleted, but the object is written with key 
cycle 3 (which is, i think, the expected behavior for the kOverwrite 
option in the method Write())

Since the key cycles gymnic is mandatory for my project, i have to 
obtain the desired behavior. How can i do that, even not using the 
kOverwrite option and instead using lower level instructions?

Many thanks,

Guido Gagliardi

This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:07 MET