Re: serialization layer for QuantLIbAddin objects

Posted by eric ehlers on
URL: http://quantlib.414.s1.nabble.com/serialization-layer-for-QuantLIbAddin-objects-tp10977p10978.html

Hi All,

A couple of observations -

1) The existing ObjectHandler design attempted to anticipate
serialization, by providing the "property vector" and related
interface in the base Object class.  Effectively an object has two
states:

- "shallow" - the values in the property vector, and a generic
interface allowing these values to be interrogated with no knowledge
of the Object's implementation
- "deep" - the instantiation of the underlying QuantLib object

ValueObject supercedes and improves upon this idea by decoupling the
shallow state into a separate class which may be instantiated
independently of the QuantLib object.

2) The subject of serialization came up previously in this mailing
list (see the links below).  Nando and Luigi sketched out a design
using TermSheets to FpML-enable QuantLib  (independently of
ObjectHandler/QuantLibAddin).  The ValueObjects proposal is compatible
with the proposed design for TermSheets.

http://sourceforge.net/mailarchive/forum.php?thread_id=6507779&forum_id=4300
http://sourceforge.net/mailarchive/forum.php?thread_id=6539684&forum_id=4300
http://sourceforge.net/mailarchive/forum.php?thread_id=6540997&forum_id=4300
http://sourceforge.net/mailarchive/forum.php?thread_id=6543552&forum_id=4300
http://sourceforge.net/mailarchive/forum.php?thread_id=6700844&forum_id=4300

Regards,
Eric