CellML API /home/andrew/Documents/cellml-api-doxygen/interfaces/AnnoTools.idl Source File Main Page Related Pages Namespaces Classes Files File List File Members All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages AnnoTools.idl Go to the documentation of this file. 1 #include "xpcom.idl" 2 #ifndef IN_CELLML_MODULE 3 #define USERDATA_NEEDED 4 #endif 5 #include "CellML_APISPEC.idl" 6 13 module cellml_services 14 { 18 interface StringAnnotation 19 : cellml_api::UserData 20 { 24 attribute wstring value; 25 }; 26 #pragma terminal-interface 27 31 interface ObjectAnnotation 32 : cellml_api::UserData 33 { 37 attribute XPCOM::IObject value; 38 }; 39 #pragma terminal-interface 40 51 interface AnnotationSet 52 : XPCOM::IObject 53 { 57 readonly attribute wstring prefixURI; 58 68 void setStringAnnotation(in cellml_api::CellMLElement element, 69 in wstring key, 70 in wstring value); 71 77 wstring getStringAnnotation(in cellml_api::CellMLElement element, 78 in wstring key); 79 90 void setObjectAnnotation(in cellml_api::CellMLElement element, 91 in wstring key, 92 in XPCOM::IObject value); 93 99 XPCOM::IObject getObjectAnnotation(in cellml_api::CellMLElement element, 100 in wstring key); 101 }; 102 107 interface AnnotationToolService 108 : XPCOM::IObject 109 { 110 AnnotationSet createAnnotationSet(); 111 }; 112 }; CellML API Documentation Downloads Applications Support