From: Thomas W. <wi...@ac...> - 2006-01-25 21:06:03
|
On Jan 19, 2006, at 6:02 PM, Sean Parent wrote: > A quick glance at the sources and I see where missing a little bit > (but not much)... > > Internally, Adam operates on adobe::value_t for the values in cells > (these are similar to boost any - but the type requirements are a > bit stronger, the type passed to a value_t must be equality > comparable and if ADOBE_SERIALIZATION is defined then it must > support operator << on an ostream. The serialization should go > through the Adobe formatting code (but that's a loose requirement) > - ADOBE_SERIALIZATION predates the boost serialization code but it > isn't complete and although I like some of the ideas better we'll > likely replace it with boost serialization. For now, it is only > used for debugging. > > The virtual machine has a pair of callbacks for user defined > functions (one which takes named parameters and hands off a > dictionary_t, and one that takes unnamed parameters and hands off > an array_t) - > > So all you need to do is write the functions you need for your > dates in terms if the function interface for the virtual machine - > and plug it in to the (non-existent but trivial to add) interface > to Adam. I've added the interface and added a bunch of functions using boost.date_time works beautifully. Thanks! Thomas Thomas Witt wi...@ac... |