From: Sean P. <sea...@ma...> - 2006-01-20 02:02:49
|
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. Programatically, you can set any value_t into an Adam sheet and it will carry through calculations (the type system is open). I don't yet have operator overloading (working on how you recover an "any addable type" from an "any type"). A long term goal is to eliminate the dependency tracking in the VM and then the interface to Adam will be simple function objects (instead of "byte codes" in an array_t). Sean On Jan 19, 2006, at 5:36 PM, Thomas Witt wrote: > > Hi, > > For the prototype I am currently building I need to do date > computations in adam. AFAICS I need to be able to convert adam cell > values to dates and need to be able to supply a number of > operations on dates. Any advice on how to achieve this would be > greatly appreciated. > > Thanks > > Thomas > > -- > Thomas Witt > wi...@ac... > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through > log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD > SPLUNK! > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Adobe-source-devel mailing list > Ado...@li... > https://lists.sourceforge.net/lists/listinfo/adobe-source-devel |