Re: schema evolution with LCGenericObject [message #1792 is a reply to message #1791] |
Sat, 11 July 2009 08:22   |
gaede Messages: 233 Registered: January 2004 Location: DESY, Hamburg |
|
|
|
Hi Toto,
in principle one can read arbitrary LCGenericObjects from LCIO files, so of course one can also read older files where the number of LCGenericObject data members is different.
So it is up to your wrapper class to handle the 'schema evolution' when reading, e.g. by checking the number of ints before accessing them.
A small problem arises if you are using the LCFixedObject<I,J,K> template as this really requires the number of elements to be fixed. In this case you would have to modify your wrapper to use LCGenericObjectImpl, which should be somewhat straight forward.
-Frank.
|
|
|