]> gerrit.simantics Code Review - simantics/fmil.git/blob - org.simantics.fmil.core/native/FMILibrary/src/XML/include/FMI1/fmi1_xml_vendor_annotations.h
Switch to full JavaSE-11+ compatibility
[simantics/fmil.git] / org.simantics.fmil.core / native / FMILibrary / src / XML / include / FMI1 / fmi1_xml_vendor_annotations.h
1 /*
2     Copyright (C) 2012 Modelon AB
3
4     This program is free software: you can redistribute it and/or modify
5     it under the terms of the BSD style license.
6
7      This program is distributed in the hope that it will be useful,
8     but WITHOUT ANY WARRANTY; without even the implied warranty of
9     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10     FMILIB_License.txt file for more details.
11
12     You should have received a copy of the FMILIB_License.txt file
13     along with this program. If not, contact Modelon AB <http://www.modelon.com>.
14 */
15
16 /** \file fmi1_xml_vendor_annotations.h
17 *  \brief Public interface to the FMI XML C-library. Handling of vendor annotations.
18 */
19
20 #ifndef FMI1_XML_VENDORANNOTATIONS_H_
21 #define FMI1_XML_VENDORANNOTATIONS_H_
22
23 #include "fmi1_xml_model_description.h"
24
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28
29 /* Basic support for vendor annotations. */
30
31 fmi1_xml_vendor_list_t* fmi1_xml_get_vendor_list(fmi1_xml_model_description_t* md);
32
33 unsigned int  fmi1_xml_get_number_of_vendors(fmi1_xml_vendor_list_t*);
34
35 fmi1_xml_vendor_t* fmi1_xml_get_vendor(fmi1_xml_vendor_list_t*, unsigned int  index);
36
37 /* fmi1_xml_vendor* fmiAddVendor(fmiModelDescription* md, char* name);
38
39 void* fmiRemoveVendor(fmi1_xml_vendor*); */
40
41 const char* fmi1_xml_get_vendor_name(fmi1_xml_vendor_t*);
42
43 unsigned int  fmi1_xml_get_number_of_vendor_annotations(fmi1_xml_vendor_t*);
44
45 /*Note: Annotations can be used in other places but have common interface name-value */
46 fmi1_xml_annotation_t* fmi1_xml_get_vendor_annotation(fmi1_xml_vendor_t*, unsigned int  index);
47
48 const char* fmi1_xml_get_annotation_name(fmi1_xml_annotation_t*);
49
50 const char* fmi1_xml_get_annotation_value(fmi1_xml_annotation_t*);
51
52 /* fmi1_xml_annotation* fmi1_xml_add_vendor_annotation(fmi1_xml_vendor*, const char* name, const char* value);
53
54 fmi1_xml_annotation* fmi1_xml_remove_vendor_annotation(fmi1_xml_vendor*, const char* name, const char* value);
55 */
56
57 #ifdef __cplusplus
58 }
59 #endif
60 #endif