本文整理汇总了C++中Species::setAnnotation方法的典型用法代码示例。如果您正苦于以下问题:C++ Species::setAnnotation方法的具体用法?C++ Species::setAnnotation怎么用?C++ Species::setAnnotation使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Species
的用法示例。
在下文中一共展示了Species::setAnnotation方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: equals
END_TEST
START_TEST (test_RDFAnnotationMetaid_setAnnotation3)
{
const char * rdfAnn =
"<annotation>\n"
" <rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:dcterms=\"http://purl.org/dc/terms/\" xmlns:vCard=\"http://www.w3.org/2001/vcard-rdf/3.0#\" xmlns:bqbiol=\"http://biomodels.net/biology-qualifiers/\" xmlns:bqmodel=\"http://biomodels.net/model-qualifiers/\">\n"
" <rdf:Description rdf:about=\"#_003\">\n"
" <dc:creator>\n"
" <rdf:Bag>\n"
" <rdf:li rdf:parseType=\"Resource\">\n"
" <vCard:N rdf:parseType=\"Resource\">\n"
" <vCard:Family>Le Novere</vCard:Family>\n"
" <vCard:Given>Nicolas</vCard:Given>\n"
" </vCard:N>\n"
" <vCard:EMAIL>[email protected]</vCard:EMAIL>\n"
" <vCard:ORG rdf:parseType=\"Resource\">\n"
" <vCard:Orgname>EMBL-EBI</vCard:Orgname>\n"
" </vCard:ORG>\n"
" </rdf:li>\n"
" </rdf:Bag>\n"
" </dc:creator>\n"
" <dcterms:created rdf:parseType=\"Resource\">\n"
" <dcterms:W3CDTF>2005-02-02T14:56:11Z</dcterms:W3CDTF>\n"
" </dcterms:created>\n"
" <dcterms:modified rdf:parseType=\"Resource\">\n"
" <dcterms:W3CDTF>2006-05-30T10:46:02Z</dcterms:W3CDTF>\n"
" </dcterms:modified>\n"
" <bqbiol:is>\n"
" <rdf:Bag>\n"
" <rdf:li rdf:resource=\"http://www.geneontology.org/#GO:0007274\"/>\n"
" </rdf:Bag>\n"
" </bqbiol:is>\n"
" </rdf:Description>\n"
" </rdf:RDF>\n"
"</annotation>";
Species *s = m->getSpecies(0);
fail_unless(s->setAnnotation(rdfAnn) == LIBSBML_UNEXPECTED_ATTRIBUTE);
fail_unless(s->getAnnotation() == NULL);
s->setMetaId("_003");
fail_unless(s->setAnnotation(rdfAnn) == LIBSBML_OPERATION_SUCCESS);
fail_unless(s->getAnnotation() != NULL);
fail_unless( equals(rdfAnn, s->getAnnotation()->toXMLString().c_str()));
}