From: Andrew M. <ak....@au...> - 2011-01-26 02:35:29
|
Hi all, I have created an IDL file describing an API for accessing SED-ML files. If there is sufficient interest, this could become a language and implementation neutral specification of a SED-ML API (obviously, each language developer would need to decide how to adapt the API to a particular language to make it as idiomatic as possible, but this could be in addition to the standard interfaces wherever possible). No implementation of the API has been created yet; I expect that the implementing this could result in changes as implementation experience often shows where changes are required. Note that this version refers to dom::Element and dom::NodeList, which is part of the W3C DOM API, and cellml_api::MathList, which is defined as: /** * A collection of math. */ interface MathList : XPCOM::IObject { /** * The length of the collection. */ readonly attribute unsigned long length; /** * Tests for the existance of an element in the set. * @param x The element to test for. * @return true if the element is present, or false otherwise. */ boolean contains(in MathMLElement x); /** * Returns a CellMLElementIterator that can be used to iterate through the * elements. The iteration order is undefined. */ MathMLElementIterator iterate(); }; I could move MathList into another IDL file called something more language agnostic for the final version. Best wishes, Andrew |