A list for the developers of CellML tools

Text archives Help


[cellml-dev] Creating StringAnnotation objects


Chronological Thread 
  • From: ak.miller at auckland.ac.nz (Andrew Miller)
  • Subject: [cellml-dev] Creating StringAnnotation objects
  • Date: Wed, 24 Mar 2010 12:37:56 +1300

Lucian Smith wrote:
> * Andrew Miller <ak.miller at auckland.ac.nz> [2010-03-23 19:55] writes:
>
>>>> Alternatively, why not just use an nsCOMPtr to store the AnnotationSet
>>>> as a member of your class, and let it get destroyed when your object is
>>>> destroyed?
>
> Wait, I still need to know how to create the AnnotationSet. Do I need to
> run that 'do_CreateInstance' function? Or maybe the 'do_GetService' one?
> And if so, what's the contract ID for an AnnotationSet?
> "@cellml.org/cellml-annotationset;1" ?

"@cellml.org/annotation-service;1" gets you an object which supports the
AnnotationToolService interface. This lets you call
createAnnotationSet() to make an annotation set.

Best wishes,
Andrew




Archive powered by MHonArc 2.6.18.

Top of page