On 1/25/06, Ben Khosrownia <
[hidden email]> wrote:
> Hi All:
>
> I am a newbie and am in the need of serializing an
> instance of PiecewiseFlatForward object (deep
> serialization). Is that possible?
Ben,
apologies for the late reply. At this time, there's no code in the
library which deals with serialization. Your best bet would be to save
the dates and forwards at the curve nodes; you can retrieve the dates
by means of the dates() method and the forwards by asking the curve
for them at each date. Later you can rebuild the curve by creating the
vectors of dates and forwards and using them to instantiate an
InterpolatedForwardCurve; you'll need to use backward-flat
interpolation to reproduce the piecewise-flat forwards.
Later,
Luigi