2 Copyright (C) 2012 Modelon AB
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the BSD style license.
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.
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>.
16 #ifndef FMI2_XML_UNITIMPL_H
17 #define FMI2_XML_UNITIMPL_H
19 #include <JM/jm_vector.h>
20 #include <JM/jm_named_ptr.h>
21 #include "FMI2/fmi2_xml_model_description.h"
22 #include "fmi2_xml_parser.h"
27 /* Structure encapsulating base unit information */
29 struct fmi2_xml_display_unit_t {
32 fmi2_xml_unit_t* baseUnit;
36 struct fmi2_xml_unit_t {
37 jm_vector(jm_voidp) displayUnits;
38 int SI_base_unit_exp[fmi2_SI_base_units_Num];
41 fmi2_xml_display_unit_t defaultDisplay;
45 struct fmi2_xml_unit_definitions_t {
46 jm_vector(jm_named_ptr) definitions;
49 fmi2_xml_display_unit_t* fmi2_xml_get_parsed_unit(fmi2_xml_parser_context_t *context, jm_vector(char)* name, int sorted);
55 #endif /* FMI2_XML_UNITIMPL_H */