wftk core: datatype adaptor

[ back to the core ] [ discussion ]

A datatype adaptor allows the wftk to use complex semantics for data values; all data is stored as strings in the underlying XML (well, unless it's stored somewhere else in a data store, but it has to go through string formatting in the XML) -- but those strings may represent any number of things, such as dates. A datatype adaptor will do formatting of data-entry HTML and at some point might be cleverer (incrementing or adding or something?)

These are the functions exposed by a datatype adaptor:
FunctionParametersPurpose
0: init   Initialize adaptor instance
1: free   Clean up instance before shutting down
2: info   Return XML describing the adaptor
3: html XML * datasheet
XML * data
Format a field for input
2: info XML * datasheet
XML * data
Return a blank field format

Implementations:


This code and documentation are released under the terms of the GNU license. They are additionally copyright (c) 2000, Vivtek. All rights reserved except those explicitly granted under the terms of the GNU license. This presentation was prepared with LPML. Try literate programming. You'll like it.