CellML Discussion List

Text archives Help


[cellml-discussion] 'Model' has pure virtual functions


Chronological Thread 
  • From: lpsmith at spod-central.org (Lucian Smith)
  • Subject: [cellml-discussion] 'Model' has pure virtual functions
  • Date: Fri, 24 Jul 2009 19:40:16 +0100

* Andrew Miller <ak.miller at auckland.ac.nz> [2009-07-24 01:55] writes:
>
> Model is an interface, not a concrete class. The way the API works is
> that you always work with interfaces, but you never directly create them
> directly. Instead, you need to use one of the bootstrap methods to get
> access to an interface for the first object, and then from there use the
> interfaces to get to everything else you need (working with pointers).

Ah, OK. That wasn't clear from the single Java example at
http://cellml-api.sourceforge.net/

> See the test programs like the unit tests, and CellML2C, to get an idea
> of how to call the API from C++.

That'd be great--where are they? I didn't see them or references to them
in the documentation. Poking around in the source directory I found
tests/ but I'm not sure what I'm looking at there.

-Lucian





Archive powered by MHonArc 2.6.18.

Top of page