Hi Lucian,

The documentation at http://cellml-api.sourceforge.net/ is generated from the IDL abstract definition of the api, which is the canonical form of the api. At the moment, there is not much in the way of documentation about how bindings are generated from the IDL, and how the various bindings and the concrete C++ implementation work.

The binding generators reside in the ./simple_interface_generators subdirectory of the api; each generator is a Python program which acts as a visitor, and is used by omniorb as it parses the IDL files in the ./interfaces subdirectory during the build process.

As far as the examples of the workings of each CellML API component go, each component which has a full program as an example has a tests subfolder (ie ./CIS/tests) which has the source for the program in it. All the unit tests are in the main ./tests subfolder. This has yet to be organised into formal documentation, however.

So, please do feel free to ask questions.

Best Regards,
Justin.

Quoting Lucian Smith <lpsm...@spod-central.org>:

* Justin Marsh <j.ma...@auckland.ac.nz> [2009-07-28 00:31] writes:
Hi Lucian,

The basic C++ should have two functions for each member attribute,
named after the attribute; one with no arguments, which returns the
value of the attribute, and one with one argument which sets the value
of the attribute.

So, to set the name you would call
model->name(L"modelname");
And to get the name, you would call
model->name();

These specific functions are located in
./sources/cellml/CellMLImplementation.cpp

Thanks!  Is there information like this in the documentation somewhere?
I'd rather not have to bug you all every time I have a basic question like
this.

-Lucian
_______________________________________________
cellml-discussion mailing list
cellml-discussion@cellml.org
http://www.cellml.org/mailman/listinfo/cellml-discussion




----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

_______________________________________________
cellml-discussion mailing list
cellml-discussion@cellml.org
http://www.cellml.org/mailman/listinfo/cellml-discussion

Reply via email to