/home/andrew/Documents/cellml-api-doxygen/interfaces/AnnoTools.idl Source File

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
20  {
24  attribute wstring value;
25  };
26 #pragma terminal-interface
27 
31  interface ObjectAnnotation
33  {
37  attribute XPCOM::IObject value;
38  };
39 #pragma terminal-interface
40 
51  interface AnnotationSet
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 
109  {
110  AnnotationSet createAnnotationSet();
111  };
112 };