CellML Discussion List

Text archives Help


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


Chronological Thread 
  • From: r.britten at auckland.ac.nz (Randall Britten)
  • Subject: [cellml-discussion] 'Model' has pure virtual functions
  • Date: Tue, 28 Jul 2009 00:27:14 +1200

Hi Lucian

Have a look at ./CCGS/tests/CellML2C.cpp

Regards,
Randall

> -----Original Message-----
> From: cellml-discussion-bounces at cellml.org [mailto:cellml-discussion-
> bounces at cellml.org] On Behalf Of Lucian Smith
> Sent: Saturday, 25 July 2009 6:40 a.m.
> To: CellML Discussion List
> Subject: Re: [cellml-discussion] 'Model' has pure virtual functions
>
> * 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
>
> _______________________________________________
> cellml-discussion mailing list
> cellml-discussion at cellml.org
> http://www.cellml.org/mailman/listinfo/cellml-discussion





Archive powered by MHonArc 2.6.18.

Top of page