├── .gitattributes ├── src ├── CAPI │ └── include │ │ ├── FMI1 │ │ └── fmi1_capi.h │ │ └── FMI2 │ │ └── fmi2_capi.h ├── Import │ ├── src │ │ ├── FMI │ │ │ ├── fmi_import_options.c │ │ │ └── fmi_import_context_impl.h │ │ ├── FMI1 │ │ │ ├── fmi1_import_variable_list_impl.h │ │ │ └── fmi1_import_vendor_annotations.c │ │ └── FMI2 │ │ │ ├── fmi2_import_variable_list_impl.h │ │ │ └── fmi2_import_impl.h │ └── include │ │ └── FMI │ │ └── fmi_import_options.h ├── XML │ ├── NOTE │ ├── src │ │ ├── FMI │ │ │ └── fmi_xml_context_impl.h │ │ ├── FMI1 │ │ │ ├── fmi1_xml_vendor_annotations_impl.h │ │ │ ├── fmi1_xml_capabilities_impl.h │ │ │ ├── fmi1_xml_variable_name_scan.l │ │ │ └── fmi1_xml_unit_impl.h │ │ └── FMI2 │ │ │ └── fmi2_xml_variable_name_scan.l │ └── include │ │ ├── FMI1 │ │ └── fmi1_xml_cosim.h │ │ └── FMI2 │ │ ├── fmi2_xml_cosim.h │ │ └── fmi2_xml_capabilities.h ├── Util │ ├── src │ │ ├── FMI │ │ │ ├── fmi_version.c │ │ │ ├── fmi_util_options_impl.h │ │ │ └── fmi_util_options.c │ │ └── JM │ │ │ └── jm_templates_inst.c │ └── include │ │ └── FMI │ │ ├── fmi_util_options.h │ │ └── fmi_version.h └── ZIP │ └── include │ └── FMI │ └── fmi_zip_unzip.h ├── Test ├── try_to_uncompress_this_file.zip ├── FMI1 │ ├── try_to_uncompress_this_file.zip │ ├── parser_test_xmls │ │ ├── env │ │ │ └── locale │ │ │ │ └── modelDescription.xml │ │ ├── naming_conventions_xmls │ │ │ ├── array │ │ │ │ ├── a │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── a-1 │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── a.a │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── a1 │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── a1comma │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── a1space │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── aspace1 │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── n0 │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── a.a123 │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── a1.a3 │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── a1space1 │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── aspacebracket1 │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── a12345678 │ │ │ │ │ └── modelDescription.xml │ │ │ │ └── a12345678space │ │ │ │ │ └── modelDescription.xml │ │ │ ├── der │ │ │ │ ├── der0 │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── der2 │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── dera │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── adera │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── dera12 │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── dera32 │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── dera32-no-space │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── somederthing │ │ │ │ │ └── modelDescription.xml │ │ │ │ └── dera-no-closing-parenthesis │ │ │ │ │ └── modelDescription.xml │ │ │ ├── q-name │ │ │ │ ├── empty │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── backslash │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── chinese │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── space │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── escape │ │ │ │ │ └── modelDescription.xml │ │ │ │ └── q-char │ │ │ │ │ └── modelDescription.xml │ │ │ ├── examples │ │ │ │ ├── foo │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── derx2 │ │ │ │ │ └── modelDescription.xml │ │ │ │ └── derderx │ │ │ │ │ └── modelDescription.xml │ │ │ ├── implementation │ │ │ │ ├── 0 │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── -0 │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── 0a │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── _0 │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── a0 │ │ │ │ │ └── modelDescription.xml │ │ │ │ └── empty │ │ │ │ │ └── modelDescription.xml │ │ │ ├── standard │ │ │ │ ├── v_min │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── resistor12.u │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── derpipe34.T142 │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── vehicle.engine.speed │ │ │ │ │ └── modelDescription.xml │ │ │ │ └── robot.axis.motor234 │ │ │ │ │ └── modelDescription.xml │ │ │ ├── flat │ │ │ │ ├── q-char-nonescaped │ │ │ │ │ └── modelDescription.xml │ │ │ │ └── acad │ │ │ │ │ └── modelDescription.xml │ │ │ └── list │ │ │ │ ├── cba │ │ │ │ └── modelDescription.xml │ │ │ │ ├── aemptyc │ │ │ │ └── modelDescription.xml │ │ │ │ └── acad │ │ │ │ └── modelDescription.xml │ │ ├── incorrect │ │ │ └── variable_no_type │ │ │ │ └── modelDescription.xml │ │ ├── default_experiment │ │ │ ├── undefined │ │ │ │ └── modelDescription.xml │ │ │ ├── mixed │ │ │ │ └── modelDescription.xml │ │ │ └── defined │ │ │ │ └── modelDescription.xml │ │ ├── deprecated │ │ │ └── canSignalEvents │ │ │ │ └── modelDescription.xml │ │ ├── alias_validation │ │ │ ├── all_alias │ │ │ │ └── modelDescription.xml │ │ │ ├── all_no_alias │ │ │ │ └── modelDescription.xml │ │ │ ├── small_valid_alias_set │ │ │ │ └── modelDescription.xml │ │ │ ├── all_alias_two_sets │ │ │ │ └── modelDescription.xml │ │ │ ├── all_no_alias_two_sets │ │ │ │ └── modelDescription.xml │ │ │ ├── inconsistent_real_start_values │ │ │ │ └── modelDescription.xml │ │ │ ├── inconsistent_str_start_values │ │ │ │ └── modelDescription.xml │ │ │ ├── all_alias_mixed │ │ │ │ └── modelDescription.xml │ │ │ ├── inconsistent_int_start_values │ │ │ │ └── modelDescription.xml │ │ │ ├── inconsistent_neg_real_start_values │ │ │ │ └── modelDescription.xml │ │ │ ├── inconsistent_bool_start_values │ │ │ │ └── modelDescription.xml │ │ │ ├── inconsistent_neg_int_start_values │ │ │ │ └── modelDescription.xml │ │ │ ├── inconsistent_neg_str_start_values │ │ │ │ └── modelDescription.xml │ │ │ ├── all_negated_alias │ │ │ │ └── modelDescription.xml │ │ │ ├── inconsistent_neg_bool_start_values │ │ │ │ └── modelDescription.xml │ │ │ ├── consistent_real_zero_start_values │ │ │ │ └── modelDescription.xml │ │ │ ├── consistent_real_start_values2 │ │ │ │ └── modelDescription.xml │ │ │ ├── consistent_str_start_values │ │ │ │ └── modelDescription.xml │ │ │ ├── inconsistent_int_start_values2 │ │ │ │ └── modelDescription.xml │ │ │ ├── medium_valid_alias_set │ │ │ │ └── modelDescription.xml │ │ │ ├── consistent_real_start_values │ │ │ │ └── modelDescription.xml │ │ │ ├── consistent_int_start_values │ │ │ │ └── modelDescription.xml │ │ │ ├── consistent_bool_start_values │ │ │ │ └── modelDescription.xml │ │ │ ├── inconsistent_enum_start_values │ │ │ │ └── modelDescription.xml │ │ │ ├── inconsistent_neg_enum_start_values │ │ │ │ └── modelDescription.xml │ │ │ └── consistent_enum_start_values │ │ │ │ └── modelDescription.xml │ │ └── variable_bad_type_variability │ │ │ └── modelDescription.xml │ └── fmu_dummy │ │ └── modelDescription.xml ├── FMI2 │ ├── parser_test_xmls │ │ ├── env │ │ │ └── locale │ │ │ │ └── modelDescription.xml │ │ ├── naming_conventions_xmls │ │ │ ├── array │ │ │ │ ├── a │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── a-1 │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── a.a │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── a1 │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── n0 │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── a.a123 │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── a1.a3 │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── a1comma │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── a1space │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── a1space1 │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── aspace1 │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── aspacebracket1 │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── a12345678 │ │ │ │ │ └── modelDescription.xml │ │ │ │ └── a12345678space │ │ │ │ │ └── modelDescription.xml │ │ │ ├── der │ │ │ │ ├── adera │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── der0 │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── der2 │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── dera │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── dera12 │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── dera32 │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── dera32-no-space │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── somederthing │ │ │ │ │ └── modelDescription.xml │ │ │ │ └── dera-no-closing-parenthesis │ │ │ │ │ └── modelDescription.xml │ │ │ ├── examples │ │ │ │ ├── foo │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── derx2 │ │ │ │ │ └── modelDescription.xml │ │ │ │ └── derderx │ │ │ │ │ └── modelDescription.xml │ │ │ ├── q-name │ │ │ │ ├── empty │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── space │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── backslash │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── chinese │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── escape │ │ │ │ │ └── modelDescription.xml │ │ │ │ └── q-char │ │ │ │ │ └── modelDescription.xml │ │ │ ├── implementation │ │ │ │ ├── 0 │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── -0 │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── 0a │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── _0 │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── a0 │ │ │ │ │ └── modelDescription.xml │ │ │ │ └── empty │ │ │ │ │ └── modelDescription.xml │ │ │ ├── standard │ │ │ │ ├── v_min │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── resistor12.u │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── derpipe34.T142 │ │ │ │ │ └── modelDescription.xml │ │ │ │ ├── vehicle.engine.speed │ │ │ │ │ └── modelDescription.xml │ │ │ │ └── robot.axis.motor234 │ │ │ │ │ └── modelDescription.xml │ │ │ ├── flat │ │ │ │ ├── q-char-nonescaped │ │ │ │ │ └── modelDescription.xml │ │ │ │ └── acad │ │ │ │ │ └── modelDescription.xml │ │ │ └── list │ │ │ │ ├── cba │ │ │ │ └── modelDescription.xml │ │ │ │ ├── aemptyc │ │ │ │ └── modelDescription.xml │ │ │ │ └── acad │ │ │ │ └── modelDescription.xml │ │ ├── default_experiment │ │ │ ├── undefined │ │ │ │ └── modelDescription.xml │ │ │ ├── mixed │ │ │ │ └── modelDescription.xml │ │ │ └── defined │ │ │ │ └── modelDescription.xml │ │ ├── variable_no_type │ │ │ └── modelDescription.xml │ │ ├── variable_bad_variability_causality │ │ │ └── modelDescription.xml │ │ └── variable_bad_type_variability │ │ │ └── modelDescription.xml │ └── fmu_dummy │ │ └── modelDescription.xml ├── fmil_test.h └── try_to_compress_this_file.xml ├── ThirdParty ├── Zlib │ ├── zlib-1.2.6 │ │ ├── ChangeLog │ │ ├── zlib.3.pdf │ │ ├── Makefile │ │ ├── win32 │ │ │ ├── VisualC.txt │ │ │ └── zlib1.rc │ │ ├── zlib.pc.in │ │ ├── inffast.h │ │ ├── gzclose.c │ │ ├── zlib.map │ │ └── watcom │ │ │ ├── watcom_l.mak │ │ │ └── watcom_f.mak │ └── Makefile.am ├── c99_snprintf │ └── c99-snprintf_1.1 │ │ ├── NEWS │ │ ├── COPYING │ │ ├── Makefile.am │ │ ├── AUTHORS │ │ ├── configure.ac │ │ ├── test.sh │ │ ├── system.h │ │ ├── example.c │ │ └── autogen.sh ├── Expat │ └── expat-2.1.0 │ │ ├── doc │ │ ├── expat.png │ │ └── valid-xhtml10.png │ │ ├── lib │ │ ├── Makefile.MPW │ │ ├── winconfig.h │ │ ├── xmltok_impl.h │ │ ├── amigaconfig.h │ │ └── macconfig.h │ │ ├── win32 │ │ ├── expat.iss │ │ └── MANIFEST.txt │ │ ├── bcb5 │ │ ├── elements.bpf │ │ ├── outline.bpf │ │ ├── expat_static.bpf │ │ ├── expatw_static.bpf │ │ ├── expat.bpf │ │ ├── expatw.bpf │ │ ├── xmlwf.bpf │ │ ├── setup.bat │ │ └── makefile.mak │ │ ├── tests │ │ ├── runtestspp.cpp │ │ ├── benchmark │ │ │ ├── README.txt │ │ │ └── benchmark.dsw │ │ ├── README.txt │ │ └── chardata.h │ │ ├── xmlwf │ │ ├── codepage.h │ │ ├── xmlurl.h │ │ ├── filemap.h │ │ ├── xmlmime.h │ │ ├── xmlfile.h │ │ ├── xmltchar.h │ │ ├── unixfilemap.c │ │ └── codepage.c │ │ ├── expat.pc.in │ │ ├── vms │ │ ├── README.vms │ │ └── expat_config.h │ │ ├── m4 │ │ └── ltversion.m4 │ │ ├── conftools │ │ ├── mkinstalldirs │ │ ├── get-version.sh │ │ └── expat.m4 │ │ ├── COPYING │ │ └── amiga │ │ ├── expat_base.h │ │ └── include │ │ └── proto │ │ └── expat.h ├── FMI │ ├── default │ │ ├── FMI1 │ │ │ ├── fmiModelTypes.h │ │ │ ├── fmiPlatformTypes.h │ │ │ └── FMILIB_FMI1_Readme.txt │ │ └── FMI2 │ │ │ ├── fmi2Functions.h │ │ │ ├── fmi2FunctionTypes.h │ │ │ └── fmi2TypesPlatform.h │ └── standard32 │ │ └── FMI1 │ │ ├── fmiFunctions.h │ │ ├── fmiModelTypes.h │ │ ├── fmiModelFunctions.h │ │ ├── fmiPlatformTypes.h │ │ └── FMILIB_FMI1_Readme.txt ├── Minizip │ └── minizip │ │ ├── MiniZip64_Changes.txt │ │ ├── miniunz.h │ │ ├── minizip.h │ │ ├── README.txt │ │ ├── Makefile │ │ ├── mztools.h │ │ ├── iowin32.h │ │ └── make_vms.com └── CMakeModules │ ├── README.txt │ └── UseDoxygen │ ├── CMakeLists.txt │ ├── cmake_uninstall.cmake.in │ └── COPYING-CMAKE-SCRIPTS ├── FMILIB_Contributing.txt ├── .dockerignore ├── .gitignore ├── Config.cmake ├── config_stamp.cmake ├── config_fmilib.c.cmake ├── fmilib.h ├── config_test.h.cmake └── fmizip.cmake ├── README.md ├── Makefile ├── FMILIB_Acknowledgements.txt └── LICENSE.md /.gitattributes: -------------------------------------------------------------------------------- 1 | Test/FMI1/fmi1_logger_test_output.txt text eol=lf 2 | 3 | *.sh text eol=lf 4 | -------------------------------------------------------------------------------- /src/CAPI/include/FMI1/fmi1_capi.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenModelica/fmi-library/master/src/CAPI/include/FMI1/fmi1_capi.h -------------------------------------------------------------------------------- /src/CAPI/include/FMI2/fmi2_capi.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenModelica/fmi-library/master/src/CAPI/include/FMI2/fmi2_capi.h -------------------------------------------------------------------------------- /Test/try_to_uncompress_this_file.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenModelica/fmi-library/master/Test/try_to_uncompress_this_file.zip -------------------------------------------------------------------------------- /ThirdParty/Zlib/zlib-1.2.6/ChangeLog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenModelica/fmi-library/master/ThirdParty/Zlib/zlib-1.2.6/ChangeLog -------------------------------------------------------------------------------- /ThirdParty/Zlib/zlib-1.2.6/zlib.3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenModelica/fmi-library/master/ThirdParty/Zlib/zlib-1.2.6/zlib.3.pdf -------------------------------------------------------------------------------- /ThirdParty/c99_snprintf/c99-snprintf_1.1/NEWS: -------------------------------------------------------------------------------- 1 | Changes in release 1.0: 2 | * Initial release. 3 | 4 | # vim: set joinspaces textwidth=72: 5 | -------------------------------------------------------------------------------- /Test/FMI1/try_to_uncompress_this_file.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenModelica/fmi-library/master/Test/FMI1/try_to_uncompress_this_file.zip -------------------------------------------------------------------------------- /ThirdParty/Expat/expat-2.1.0/doc/expat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenModelica/fmi-library/master/ThirdParty/Expat/expat-2.1.0/doc/expat.png -------------------------------------------------------------------------------- /ThirdParty/FMI/default/FMI1/fmiModelTypes.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenModelica/fmi-library/master/ThirdParty/FMI/default/FMI1/fmiModelTypes.h -------------------------------------------------------------------------------- /ThirdParty/FMI/default/FMI2/fmi2Functions.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenModelica/fmi-library/master/ThirdParty/FMI/default/FMI2/fmi2Functions.h -------------------------------------------------------------------------------- /ThirdParty/Expat/expat-2.1.0/lib/Makefile.MPW: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenModelica/fmi-library/master/ThirdParty/Expat/expat-2.1.0/lib/Makefile.MPW -------------------------------------------------------------------------------- /ThirdParty/Expat/expat-2.1.0/win32/expat.iss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenModelica/fmi-library/master/ThirdParty/Expat/expat-2.1.0/win32/expat.iss -------------------------------------------------------------------------------- /ThirdParty/FMI/standard32/FMI1/fmiFunctions.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenModelica/fmi-library/master/ThirdParty/FMI/standard32/FMI1/fmiFunctions.h -------------------------------------------------------------------------------- /ThirdParty/FMI/default/FMI1/fmiPlatformTypes.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenModelica/fmi-library/master/ThirdParty/FMI/default/FMI1/fmiPlatformTypes.h -------------------------------------------------------------------------------- /ThirdParty/FMI/default/FMI2/fmi2FunctionTypes.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenModelica/fmi-library/master/ThirdParty/FMI/default/FMI2/fmi2FunctionTypes.h -------------------------------------------------------------------------------- /ThirdParty/FMI/default/FMI2/fmi2TypesPlatform.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenModelica/fmi-library/master/ThirdParty/FMI/default/FMI2/fmi2TypesPlatform.h -------------------------------------------------------------------------------- /ThirdParty/FMI/standard32/FMI1/fmiModelTypes.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenModelica/fmi-library/master/ThirdParty/FMI/standard32/FMI1/fmiModelTypes.h -------------------------------------------------------------------------------- /ThirdParty/Zlib/zlib-1.2.6/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | -@echo "Please use ./configure first. Thank you." 3 | 4 | distclean: 5 | make -f Makefile.in distclean 6 | -------------------------------------------------------------------------------- /ThirdParty/Expat/expat-2.1.0/doc/valid-xhtml10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenModelica/fmi-library/master/ThirdParty/Expat/expat-2.1.0/doc/valid-xhtml10.png -------------------------------------------------------------------------------- /ThirdParty/FMI/standard32/FMI1/fmiModelFunctions.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenModelica/fmi-library/master/ThirdParty/FMI/standard32/FMI1/fmiModelFunctions.h -------------------------------------------------------------------------------- /ThirdParty/FMI/standard32/FMI1/fmiPlatformTypes.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenModelica/fmi-library/master/ThirdParty/FMI/standard32/FMI1/fmiPlatformTypes.h -------------------------------------------------------------------------------- /FMILIB_Contributing.txt: -------------------------------------------------------------------------------- 1 | Thanks for considering to contribute to FMI Library. 2 | 3 | Please, consult https://github.com/modelon/contributing for the complete terms. 4 | -------------------------------------------------------------------------------- /ThirdParty/Zlib/zlib-1.2.6/win32/VisualC.txt: -------------------------------------------------------------------------------- 1 | 2 | To build zlib using the Microsoft Visual C++ environment, 3 | use the appropriate project from the projects/ directory. 4 | -------------------------------------------------------------------------------- /ThirdParty/Minizip/minizip/MiniZip64_Changes.txt: -------------------------------------------------------------------------------- 1 | 2 | MiniZip 1.1 was derrived from MiniZip at version 1.01f 3 | 4 | Change in 1.0 (Okt 2009) 5 | - **TODO - Add history** 6 | 7 | -------------------------------------------------------------------------------- /ThirdParty/Expat/expat-2.1.0/bcb5/elements.bpf: -------------------------------------------------------------------------------- 1 | USEUNIT("..\examples\elements.c"); 2 | USELIB("Release\libexpats_mtd.lib"); 3 | //--------------------------------------------------------------------------- 4 | main 5 | -------------------------------------------------------------------------------- /ThirdParty/Expat/expat-2.1.0/bcb5/outline.bpf: -------------------------------------------------------------------------------- 1 | USEUNIT("..\examples\outline.c"); 2 | USELIB("Release\libexpat_mtd.lib"); 3 | //--------------------------------------------------------------------------- 4 | main 5 | -------------------------------------------------------------------------------- /ThirdParty/c99_snprintf/c99-snprintf_1.1/COPYING: -------------------------------------------------------------------------------- 1 | UNLESS SPECIFIED OTHERWISE IN THE INDIVIDUAL SOURCE FILES INCLUDED WITH 2 | THIS PACKAGE, they may freely be used, modified and/or redistributed for 3 | any purpose. 4 | -------------------------------------------------------------------------------- /.dockerignore: -------------------------------------------------------------------------------- 1 | # Files that will not be copied to the Docker image: 2 | 3 | /.git/ 4 | /.vs/ 5 | 6 | /build-*/ 7 | /CMakeFiles/ 8 | /doc/ 9 | /install-*/ 10 | /out/ 11 | /testlogs-*/ 12 | 13 | /CMakeSettings.json 14 | /CMakeCache.txt 15 | -------------------------------------------------------------------------------- /ThirdParty/Expat/expat-2.1.0/bcb5/expat_static.bpf: -------------------------------------------------------------------------------- 1 | USEUNIT("..\lib\xmlparse.c"); 2 | USEUNIT("..\lib\xmlrole.c"); 3 | USEUNIT("..\lib\xmltok.c"); 4 | //--------------------------------------------------------------------------- 5 | #define Library 6 | -------------------------------------------------------------------------------- /ThirdParty/Expat/expat-2.1.0/bcb5/expatw_static.bpf: -------------------------------------------------------------------------------- 1 | USEUNIT("..\lib\xmlparse.c"); 2 | USEUNIT("..\lib\xmlrole.c"); 3 | USEUNIT("..\lib\xmltok.c"); 4 | //--------------------------------------------------------------------------- 5 | #define Library 6 | -------------------------------------------------------------------------------- /ThirdParty/Expat/expat-2.1.0/tests/runtestspp.cpp: -------------------------------------------------------------------------------- 1 | // C++ compilation harness for the test suite. 2 | // 3 | // This is used to ensure the Expat headers can be included from C++ 4 | // and have everything work as expected. 5 | // 6 | #include "runtests.c" 7 | -------------------------------------------------------------------------------- /ThirdParty/Expat/expat-2.1.0/xmlwf/codepage.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd 2 | See the file COPYING for copying permission. 3 | */ 4 | 5 | int codepageMap(int cp, int *map); 6 | int codepageConvert(int cp, const char *p); 7 | -------------------------------------------------------------------------------- /ThirdParty/Expat/expat-2.1.0/bcb5/expat.bpf: -------------------------------------------------------------------------------- 1 | USEUNIT("..\lib\xmlparse.c"); 2 | USEUNIT("..\lib\xmlrole.c"); 3 | USEUNIT("..\lib\xmltok.c"); 4 | USEDEF("libexpat_mtd.def"); 5 | //--------------------------------------------------------------------------- 6 | #define DllEntryPoint 7 | -------------------------------------------------------------------------------- /ThirdParty/Expat/expat-2.1.0/bcb5/expatw.bpf: -------------------------------------------------------------------------------- 1 | USEUNIT("..\lib\xmlparse.c"); 2 | USEUNIT("..\lib\xmlrole.c"); 3 | USEUNIT("..\lib\xmltok.c"); 4 | USEDEF("libexpatw_mtd.def"); 5 | //--------------------------------------------------------------------------- 6 | #define DllEntryPoint 7 | -------------------------------------------------------------------------------- /ThirdParty/Minizip/minizip/miniunz.h: -------------------------------------------------------------------------------- 1 | #ifndef MINIUNZ_H 2 | #define MINIUNZ_H 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | int miniunz(int argc , char *argv[]); /* Renamed the main function */ 8 | #ifdef __cplusplus 9 | } 10 | #endif 11 | #endif /* End of header file MINIUNZ_H */ 12 | -------------------------------------------------------------------------------- /ThirdParty/Expat/expat-2.1.0/bcb5/xmlwf.bpf: -------------------------------------------------------------------------------- 1 | USEUNIT("..\xmlwf\codepage.c"); 2 | USEUNIT("..\xmlwf\win32filemap.c"); 3 | USEUNIT("..\xmlwf\xmlfile.c"); 4 | USEUNIT("..\xmlwf\xmlwf.c"); 5 | USELIB("Release\libexpat_mtd.lib"); 6 | //--------------------------------------------------------------------------- 7 | main 8 | -------------------------------------------------------------------------------- /ThirdParty/Minizip/minizip/minizip.h: -------------------------------------------------------------------------------- 1 | #ifndef MINIZIP_H 2 | #define MINIZIP_H 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | int minizip(int argc , char *argv[]); /* Renamed the main function */ 8 | 9 | #ifdef __cplusplus 10 | } 11 | #endif 12 | #endif /* End of header file MINIZIP_H */ 13 | -------------------------------------------------------------------------------- /ThirdParty/Expat/expat-2.1.0/expat.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | 6 | Name: expat 7 | Version: @PACKAGE_VERSION@ 8 | Description: expat XML parser 9 | URL: http://www.libexpat.org 10 | Libs: -L${libdir} -lexpat 11 | Cflags: -I${includedir} 12 | -------------------------------------------------------------------------------- /ThirdParty/Expat/expat-2.1.0/xmlwf/xmlurl.h: -------------------------------------------------------------------------------- 1 | #ifdef __cplusplus 2 | extern "C" { 3 | #endif 4 | 5 | int XML_URLInit(); 6 | void XML_URLUninit(); 7 | int XML_ProcessURL(XML_Parser parser, 8 | const XML_Char *url, 9 | unsigned flags); 10 | 11 | #ifdef __cplusplus 12 | } 13 | #endif 14 | -------------------------------------------------------------------------------- /ThirdParty/c99_snprintf/c99-snprintf_1.1/Makefile.am: -------------------------------------------------------------------------------- 1 | # $Id: Makefile.am,v 1.1.1.1 2008/01/06 03:24:00 holger Exp $ 2 | 3 | bin_PROGRAMS = example 4 | pkgdata_DATA = AUTHORS ChangeLog COPYING NEWS README 5 | example_SOURCES = example.c system.h 6 | example_LDADD = $(LIBOBJS) 7 | ACLOCAL_AMFLAGS = -I m4 8 | EXTRA_DIST = autogen.sh test.sh 9 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # If you add anything to this file, then also consider adding it to .dockerignore. 2 | 3 | /.git/ 4 | /.vs/ 5 | 6 | /build-*/ 7 | /CMakeFiles/ 8 | /doc/ 9 | /install-*/ 10 | /out/ 11 | /testlogs-*/ 12 | 13 | /CMakeSettings.json 14 | /CMakeCache.txt 15 | 16 | # Should not go in .dockerignore: 17 | /ThirdParty/winflexbison/ 18 | -------------------------------------------------------------------------------- /Config.cmake/config_stamp.cmake: -------------------------------------------------------------------------------- 1 | FIND_PACKAGE(Subversion REQUIRED) 2 | Subversion_WC_INFO(${FMILIBRARYHOME} FMILibrary) 3 | 4 | message(STATUS "Generating build timestamp in ${FMILIBRARYBUILD}/config_fmilib.c") 5 | configure_file ( 6 | "${FMILIBRARYHOME}/Config.cmake/config_fmilib.c.cmake" 7 | "${FMILIBRARYBUILD}/config_fmilib.c" 8 | ) 9 | -------------------------------------------------------------------------------- /ThirdParty/Zlib/zlib-1.2.6/zlib.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | sharedlibdir=@sharedlibdir@ 5 | includedir=@includedir@ 6 | 7 | Name: zlib 8 | Description: zlib compression library 9 | Version: @VERSION@ 10 | 11 | Requires: 12 | Libs: -L${libdir} -L${sharedlibdir} -lz 13 | Cflags: -I${includedir} 14 | -------------------------------------------------------------------------------- /ThirdParty/c99_snprintf/c99-snprintf_1.1/AUTHORS: -------------------------------------------------------------------------------- 1 | Patrick Powell 2 | Brandon Long 3 | Thomas Roessler 4 | Michael Elkins 5 | Andrew Tridgell 6 | Russ Allbery 7 | Hrvoje Niksic 8 | Damien Miller 9 | Holger Weiss 10 | -------------------------------------------------------------------------------- /ThirdParty/CMakeModules/README.txt: -------------------------------------------------------------------------------- 1 | This files lists non-standard CMake modules used by the build system. 2 | 3 | UseDoxygen.cmake 4 | ------------------- 5 | Available from: 6 | http://tobias.rautenkranz.ch/cmake/doxygen/ 7 | 8 | Modification: added configuration variable for images: 9 | 10 | usedoxygen_set_default(DOXYFILE_IMAGE_DIR ${DOXYFILE_SOURCE_DIR} 11 | STRING "Doxygen images input directory") -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/env/locale/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 9 | 10 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /ThirdParty/c99_snprintf/c99-snprintf_1.1/configure.ac: -------------------------------------------------------------------------------- 1 | dnl $Id: configure.ac,v 1.2 2008/01/20 14:02:00 holger Exp $ 2 | 3 | AC_INIT([C99-snprintf], [1.1], [holger@jhweiss.de]) 4 | AC_PREREQ([2.60]) 5 | AC_CONFIG_HEADERS([config.h]) 6 | AM_INIT_AUTOMAKE 7 | AC_PROG_CC_C99 8 | 9 | HW_FUNC_VSNPRINTF 10 | HW_FUNC_SNPRINTF 11 | HW_FUNC_VASPRINTF 12 | HW_FUNC_ASPRINTF 13 | 14 | AC_CONFIG_FILES([Makefile]) 15 | AC_OUTPUT 16 | 17 | dnl vim:set filetype=m4: 18 | -------------------------------------------------------------------------------- /ThirdParty/FMI/default/FMI1/FMILIB_FMI1_Readme.txt: -------------------------------------------------------------------------------- 1 | FMILIB_FMI1_Readme.txt 2 | ====================== 3 | Note that "fmiPlatformTypes.h" is used for compilation of FMILIB. 4 | It is expected that its contents is consistent with the definitions 5 | in "fmiModelTypes.h". Therefore, make sure to provide all the 4 6 | header files (both ME and CS interfaces) if you are building for 7 | non-standard platform. 8 | 9 | All the 4 header files are used in FMILIB tests. 10 | -------------------------------------------------------------------------------- /ThirdParty/FMI/standard32/FMI1/FMILIB_FMI1_Readme.txt: -------------------------------------------------------------------------------- 1 | FMILIB_FMI1_Readme.txt 2 | ====================== 3 | Note that "fmiPlatformTypes.h" is used for compilation of FMILIB. 4 | It is expected that its contents is consistent with the definitions 5 | in "fmiModelTypes.h". Therefore, make sure to provide all the 4 6 | header files (both ME and CS interfaces) if you are building for 7 | non-standard platform. 8 | 9 | All the 4 header files are used in FMILIB tests. 10 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/env/locale/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 12 | 13 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /ThirdParty/Zlib/zlib-1.2.6/inffast.h: -------------------------------------------------------------------------------- 1 | /* inffast.h -- header to use inffast.c 2 | * Copyright (C) 1995-2003, 2010 Mark Adler 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | /* WARNING: this file should *not* be used by applications. It is 7 | part of the implementation of the compression library and is 8 | subject to change. Applications should only use zlib.h. 9 | */ 10 | 11 | void ZLIB_INTERNAL inflate_fast OF((z_streamp strm, unsigned start)); 12 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/array/a/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Test/FMI1/fmu_dummy/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/array/a-1/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/array/a.a/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/array/a1/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/der/der0/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/der/der2/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/der/dera/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/q-name/empty/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/array/a1comma/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/array/a1space/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/array/aspace1/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/array/n0/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/der/adera/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/examples/foo/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/implementation/-0/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/implementation/0/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/implementation/0a/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/implementation/_0/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/implementation/a0/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/q-name/backslash/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/q-name/chinese/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/q-name/space/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/standard/v_min/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/array/a.a123/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/array/a1.a3/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/array/a1space1/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/der/dera12/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/der/dera32/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/examples/derx2/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/implementation/empty/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /ThirdParty/CMakeModules/UseDoxygen/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.6) 2 | 3 | project(UseDoxygen) 4 | 5 | set(CMAKE_INSTALL_PREFIX ${CMAKE_ROOT}) 6 | 7 | install(FILES UseDoxygen.cmake Doxyfile.in 8 | DESTINATION "Modules") 9 | 10 | configure_file( 11 | "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in" 12 | "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake" 13 | IMMEDIATE @ONLY) 14 | 15 | add_custom_target(uninstall 16 | COMMAND "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake") 17 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/array/aspacebracket1/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/der/dera32-no-space/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/der/somederthing/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/examples/derderx/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/array/a12345678/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/standard/resistor12.u/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/der/dera-no-closing-parenthesis/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /ThirdParty/c99_snprintf/c99-snprintf_1.1/test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # $Id: test.sh,v 1.2 2008/01/11 20:00:40 holger Exp $ 4 | 5 | test -n "$CC" || \ 6 | CC="gcc" 7 | 8 | test -n "$CPPFLAGS" || \ 9 | CPPFLAGS="-DTEST_SNPRINTF" 10 | 11 | test -n "$LIBS" || \ 12 | LIBS="-lm" 13 | 14 | test -n "$CFLAGS" || \ 15 | CFLAGS="-g3 -O2 -Wall -W -Wbad-function-cast -Wcast-align -Wmissing-noreturn \ 16 | -Wnested-externs -Wpointer-arith -Wsign-compare -Wwrite-strings \ 17 | -Werror" 18 | 19 | $CC $CFLAGS $CPPFLAGS -o snprintf snprintf.c $LIBS && \ 20 | ./snprintf 21 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/array/a12345678space/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/standard/derpipe34.T142/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/standard/vehicle.engine.speed/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /ThirdParty/Minizip/minizip/README.txt: -------------------------------------------------------------------------------- 1 | The minizip code has been obtained from http://www.winimage.com/zLibDll/minizip.html on 27.01.2012. 2 | It was modified to fit specific project requirements. 3 | 4 | List of changes made to minizip without any guaranty that this list is updated or correct. 5 | - main functions replaced with regular function names. 6 | - replaced exit(..) calls with function returns. 7 | - suppressed messages written to stdout(printf) with an empty function. 8 | - minor platform dependent bug fixes. 9 | - maybe other changes has been made. -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/flat/q-char-nonescaped/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/q-name/escape/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/q-name/q-char/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/standard/robot.axis.motor234/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/incorrect/variable_no_type/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /ThirdParty/Minizip/minizip/Makefile: -------------------------------------------------------------------------------- 1 | CC=cc 2 | CFLAGS=-O -I../.. 3 | 4 | UNZ_OBJS = miniunz.o unzip.o ioapi.o ../../libz.a 5 | ZIP_OBJS = minizip.o zip.o ioapi.o ../../libz.a 6 | 7 | .c.o: 8 | $(CC) -c $(CFLAGS) $*.c 9 | 10 | all: miniunz minizip 11 | 12 | miniunz: $(UNZ_OBJS) 13 | $(CC) $(CFLAGS) -o $@ $(UNZ_OBJS) 14 | 15 | minizip: $(ZIP_OBJS) 16 | $(CC) $(CFLAGS) -o $@ $(ZIP_OBJS) 17 | 18 | test: miniunz minizip 19 | ./minizip test readme.txt 20 | ./miniunz -l test.zip 21 | mv readme.txt readme.old 22 | ./miniunz test.zip 23 | 24 | clean: 25 | /bin/rm -f *.o *~ minizip miniunz 26 | -------------------------------------------------------------------------------- /ThirdParty/Expat/expat-2.1.0/xmlwf/filemap.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd 2 | See the file COPYING for copying permission. 3 | */ 4 | 5 | #include 6 | 7 | #ifdef XML_UNICODE 8 | int filemap(const wchar_t *name, 9 | void (*processor)(const void *, size_t, 10 | const wchar_t *, void *arg), 11 | void *arg); 12 | #else 13 | int filemap(const char *name, 14 | void (*processor)(const void *, size_t, 15 | const char *, void *arg), 16 | void *arg); 17 | #endif 18 | -------------------------------------------------------------------------------- /ThirdParty/Expat/expat-2.1.0/xmlwf/xmlmime.h: -------------------------------------------------------------------------------- 1 | #ifdef __cplusplus 2 | extern "C" { 3 | #endif 4 | 5 | /* Registered charset names are at most 40 characters long. */ 6 | 7 | #define CHARSET_MAX 41 8 | 9 | /* Figure out the charset to use from the ContentType. 10 | buf contains the body of the header field (the part after "Content-Type:"). 11 | charset gets the charset to use. It must be at least CHARSET_MAX chars 12 | long. charset will be empty if the default charset should be used. 13 | */ 14 | 15 | void getXMLCharset(const char *buf, char *charset); 16 | 17 | #ifdef __cplusplus 18 | } 19 | #endif 20 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/array/a/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/array/a-1/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/array/a.a/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/array/a1/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/array/n0/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/der/adera/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/der/der0/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/der/der2/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/der/dera/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/examples/foo/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/q-name/empty/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/q-name/space/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /ThirdParty/Expat/expat-2.1.0/bcb5/setup.bat: -------------------------------------------------------------------------------- 1 | REM CommandInterpreter: $(COMSPEC) 2 | if not exist .\release\nul mkdir release 3 | if not exist .\release\obj\nul mkdir release\obj 4 | if not exist .\release\obj\libexpat\nul mkdir release\obj\libexpat 5 | if not exist .\release\obj\libexpatw\nul mkdir release\obj\libexpatw 6 | if not exist .\release\obj\libexpat_static\nul mkdir release\obj\libexpat_static 7 | if not exist .\release\obj\libexpatw_static\nul mkdir release\obj\libexpatw_static 8 | if not exist .\release\obj\examples\nul mkdir release\obj\examples 9 | if not exist .\release\obj\xmlwf\nul mkdir release\obj\xmlwf 10 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/array/a.a123/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/array/a1.a3/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/array/a1comma/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/array/a1space/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/array/a1space1/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/array/aspace1/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/der/dera12/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/der/dera32/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/implementation/-0/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/implementation/0/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/implementation/0a/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/implementation/_0/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/implementation/a0/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/implementation/empty/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/q-name/backslash/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/q-name/chinese/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/standard/v_min/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/array/aspacebracket1/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/examples/derx2/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/der/dera32-no-space/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/der/somederthing/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/examples/derderx/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /ThirdParty/Expat/expat-2.1.0/xmlwf/xmlfile.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd 2 | See the file COPYING for copying permission. 3 | */ 4 | 5 | #define XML_MAP_FILE 01 6 | #define XML_EXTERNAL_ENTITIES 02 7 | 8 | #ifdef XML_LARGE_SIZE 9 | #if defined(XML_USE_MSC_EXTENSIONS) && _MSC_VER < 1400 10 | #define XML_FMT_INT_MOD "I64" 11 | #else 12 | #define XML_FMT_INT_MOD "ll" 13 | #endif 14 | #else 15 | #define XML_FMT_INT_MOD "l" 16 | #endif 17 | 18 | extern int XML_ProcessFile(XML_Parser parser, 19 | const XML_Char *filename, 20 | unsigned flags); 21 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/default_experiment/undefined/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/array/a12345678/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/der/dera-no-closing-parenthesis/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/standard/resistor12.u/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/array/a12345678space/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/standard/derpipe34.T142/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/default_experiment/undefined/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 13 | 14 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/q-name/escape/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/q-name/q-char/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/standard/vehicle.engine.speed/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /ThirdParty/Expat/expat-2.1.0/tests/benchmark/README.txt: -------------------------------------------------------------------------------- 1 | Use this benchmark command line utility as follows: 2 | 3 | benchmark [-n] <# iterations> 4 | 5 | The command line arguments are: 6 | 7 | -n ... optional; if supplied, namespace processing is turned on 8 | ... name/path of test xml file 9 | ... size of processing buffer; 10 | the file is parsed in chunks of this size 11 | <# iterations> ... how often will the file be parsed 12 | 13 | Returns: 14 | 15 | The time (in seconds) it takes to parse the test file, 16 | averaged over the number of iterations. -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/standard/robot.axis.motor234/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /ThirdParty/Expat/expat-2.1.0/tests/README.txt: -------------------------------------------------------------------------------- 1 | This directory contains the (fledgling) test suite for Expat. The 2 | tests provide general unit testing and regression coverage. The tests 3 | are not expected to be useful examples of Expat usage; see the 4 | examples/ directory for that. 5 | 6 | The Expat tests use a partial internal implementation of the "Check" 7 | unit testing framework for C. More information on Check can be found at: 8 | 9 | http://check.sourceforge.net/ 10 | 11 | Expat must be built and, depending on platform, must be installed, before "make check" can be executed. 12 | 13 | This test suite can all change in a later version. 14 | -------------------------------------------------------------------------------- /Test/FMI2/fmu_dummy/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/flat/q-char-nonescaped/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/deprecated/canSignalEvents/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/default_experiment/mixed/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 15 | 16 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | FMI Library 2 | =========== 3 | 4 | FMI Library (FMIL) is a software package written in C that enables integration 5 | of Functional Mock-up Units (FMUs) import in applications. FMI Library is an 6 | independent open-source implementation of the [FMI open standard](https://fmi-standard.org). 7 | 8 | The documentation for the latest version of FMI Library can be downloaded from the [release page](https://github.com/modelon-community/fmi-library/releases). 9 | 10 | Please report issues related to FMI Library to the [GitHub issues page](https://github.com/modelon-community/fmi-library/issues). 11 | 12 | For information about contributing, see [here](https://github.com/modelon/contributing). 13 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/variable_no_type/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/default_experiment/mixed/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 13 | 14 | 16 | 17 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/default_experiment/defined/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 15 | 16 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/list/cba/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /ThirdParty/Expat/expat-2.1.0/vms/README.vms: -------------------------------------------------------------------------------- 1 | 4-jun-2002 Craig A. Berry 2 | Added rudimentary build procedures for 3 | OpenVMS based on work by Martin Vorlaender. 4 | 5 | 6 | You'll need MMS or its freeware equivalent MMK. Just go to the 7 | top-level directory and type 8 | 9 | $ MMS/DESCRIPTION=[.vms] 10 | 11 | or 12 | 13 | $ MMK/DESCRIPTION=[.vms] 14 | 15 | You'll end up with the object library expat.olb. For now, installation 16 | consists merely of copying the object library, include files, and 17 | documentation to a suitable location. 18 | 19 | To-do list: 20 | 21 | -- create a shareable image 22 | -- build and run the tests and build the xmlwf utility 23 | -- create an install target 24 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/list/aemptyc/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /ThirdParty/Expat/expat-2.1.0/bcb5/makefile.mak: -------------------------------------------------------------------------------- 1 | all: setup expat expatw expat_static expatw_static elements outline xmlwf 2 | 3 | setup: 4 | setup 5 | 6 | expat: 7 | make -l -fexpat.mak 8 | 9 | expatw: 10 | make -l -fexpatw.mak 11 | 12 | expat_static: 13 | make -l -fexpat_static.mak 14 | 15 | expatw_static: 16 | make -l -fexpatw_static.mak 17 | 18 | elements: 19 | make -l -felements.mak 20 | 21 | outline: 22 | make -l -foutline.mak 23 | 24 | xmlwf: 25 | make -l -fxmlwf.mak 26 | 27 | clean: 28 | # works on Win98/ME 29 | # deltree /y release\obj 30 | # works on WinNT/2000 31 | del /s/f/q release\obj 32 | 33 | distclean: 34 | # works on Win98/ME 35 | # deltree /y release\*.* 36 | # works on WinNT/2000 37 | del /s/f/q release\* 38 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/default_experiment/defined/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 13 | 14 | 16 | 17 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/alias_validation/all_alias/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/alias_validation/all_no_alias/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /ThirdParty/c99_snprintf/c99-snprintf_1.1/system.h: -------------------------------------------------------------------------------- 1 | /* $Id: system.h,v 1.1.1.1 2008/01/06 03:24:00 holger Exp $ */ 2 | 3 | #ifndef SYSTEM_H 4 | #define SYSTEM_H 5 | 6 | #if HAVE_CONFIG_H 7 | #include 8 | #endif /* HAVE_CONFIG_H */ 9 | 10 | #if HAVE_STDARG_H 11 | #include 12 | #if !HAVE_VSNPRINTF 13 | int rpl_vsnprintf(char *, size_t, const char *, va_list); 14 | #endif /* !HAVE_VSNPRINTF */ 15 | #if !HAVE_SNPRINTF 16 | int rpl_snprintf(char *, size_t, const char *, ...); 17 | #endif /* !HAVE_SNPRINTF */ 18 | #if !HAVE_VASPRINTF 19 | int rpl_vasprintf(char **, const char *, va_list); 20 | #endif /* !HAVE_VASPRINTF */ 21 | #if !HAVE_ASPRINTF 22 | int rpl_asprintf(char **, const char *, ...); 23 | #endif /* !HAVE_ASPRINTF */ 24 | #endif /* HAVE_STDARG_H */ 25 | #endif /* SYSTEM_H */ 26 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/list/cba/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/alias_validation/small_valid_alias_set/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/flat/acad/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/naming_conventions_xmls/list/acad/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/list/aemptyc/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/variable_bad_variability_causality/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /ThirdParty/Zlib/zlib-1.2.6/gzclose.c: -------------------------------------------------------------------------------- 1 | /* gzclose.c -- zlib gzclose() function 2 | * Copyright (C) 2004, 2010 Mark Adler 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | #include "gzguts.h" 7 | 8 | /* gzclose() is in a separate file so that it is linked in only if it is used. 9 | That way the other gzclose functions can be used instead to avoid linking in 10 | unneeded compression or decompression routines. */ 11 | int ZEXPORT gzclose(file) 12 | gzFile file; 13 | { 14 | #ifndef NO_GZCOMPRESS 15 | gz_statep state; 16 | 17 | if (file == NULL) 18 | return Z_STREAM_ERROR; 19 | state = (gz_statep)file; 20 | 21 | return state->mode == GZ_READ ? gzclose_r(file) : gzclose_w(file); 22 | #else 23 | return gzclose_r(file); 24 | #endif 25 | } 26 | -------------------------------------------------------------------------------- /ThirdParty/Expat/expat-2.1.0/m4/ltversion.m4: -------------------------------------------------------------------------------- 1 | # ltversion.m4 -- version numbers -*- Autoconf -*- 2 | # 3 | # Copyright (C) 2004 Free Software Foundation, Inc. 4 | # Written by Scott James Remnant, 2004 5 | # 6 | # This file is free software; the Free Software Foundation gives 7 | # unlimited permission to copy and/or distribute it, with or without 8 | # modifications, as long as this notice is preserved. 9 | 10 | # @configure_input@ 11 | 12 | # serial 3293 ltversion.m4 13 | # This file is part of GNU Libtool 14 | 15 | m4_define([LT_PACKAGE_VERSION], [2.4]) 16 | m4_define([LT_PACKAGE_REVISION], [1.3293]) 17 | 18 | AC_DEFUN([LTVERSION_VERSION], 19 | [macro_version='2.4' 20 | macro_revision='1.3293' 21 | _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) 22 | _LT_DECL(, macro_revision, 0) 23 | ]) 24 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/alias_validation/all_alias_two_sets/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/alias_validation/all_no_alias_two_sets/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/alias_validation/inconsistent_real_start_values/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/alias_validation/inconsistent_str_start_values/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/alias_validation/all_alias_mixed/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/alias_validation/inconsistent_int_start_values/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/alias_validation/inconsistent_neg_real_start_values/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/alias_validation/inconsistent_bool_start_values/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/alias_validation/inconsistent_neg_int_start_values/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/alias_validation/inconsistent_neg_str_start_values/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/alias_validation/all_negated_alias/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/alias_validation/inconsistent_neg_bool_start_values/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/flat/acad/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/alias_validation/consistent_real_zero_start_values/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /ThirdParty/Expat/expat-2.1.0/lib/winconfig.h: -------------------------------------------------------------------------------- 1 | /*================================================================ 2 | ** Copyright 2000, Clark Cooper 3 | ** All rights reserved. 4 | ** 5 | ** This is free software. You are permitted to copy, distribute, or modify 6 | ** it under the terms of the MIT/X license (contained in the COPYING file 7 | ** with this distribution.) 8 | */ 9 | 10 | #ifndef WINCONFIG_H 11 | #define WINCONFIG_H 12 | 13 | #define WIN32_LEAN_AND_MEAN 14 | #include 15 | #undef WIN32_LEAN_AND_MEAN 16 | 17 | #include 18 | #include 19 | 20 | #define XML_NS 1 21 | #define XML_DTD 1 22 | #define XML_CONTEXT_BYTES 1024 23 | 24 | /* we will assume all Windows platforms are little endian */ 25 | #define BYTEORDER 1234 26 | 27 | /* Windows has memmove() available. */ 28 | #define HAVE_MEMMOVE 29 | 30 | #endif /* ndef WINCONFIG_H */ 31 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/naming_conventions_xmls/list/acad/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /ThirdParty/Minizip/minizip/mztools.h: -------------------------------------------------------------------------------- 1 | /* 2 | Additional tools for Minizip 3 | Code: Xavier Roche '2004 4 | License: Same as ZLIB (www.gzip.org) 5 | */ 6 | 7 | #ifndef _zip_tools_H 8 | #define _zip_tools_H 9 | 10 | #ifdef __cplusplus 11 | extern "C" { 12 | #endif 13 | 14 | #ifndef _ZLIB_H 15 | #include "zlib.h" 16 | #endif 17 | 18 | #include "unzip.h" 19 | 20 | /* Repair a ZIP file (missing central directory) 21 | file: file to recover 22 | fileOut: output file after recovery 23 | fileOutTmp: temporary file name used for recovery 24 | */ 25 | extern int ZEXPORT unzRepair(const char* file, 26 | const char* fileOut, 27 | const char* fileOutTmp, 28 | uLong* nRecovered, 29 | uLong* bytesRecovered); 30 | 31 | 32 | #ifdef __cplusplus 33 | } 34 | #endif 35 | 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /ThirdParty/Expat/expat-2.1.0/lib/xmltok_impl.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd 3 | See the file COPYING for copying permission. 4 | */ 5 | 6 | enum { 7 | BT_NONXML, 8 | BT_MALFORM, 9 | BT_LT, 10 | BT_AMP, 11 | BT_RSQB, 12 | BT_LEAD2, 13 | BT_LEAD3, 14 | BT_LEAD4, 15 | BT_TRAIL, 16 | BT_CR, 17 | BT_LF, 18 | BT_GT, 19 | BT_QUOT, 20 | BT_APOS, 21 | BT_EQUALS, 22 | BT_QUEST, 23 | BT_EXCL, 24 | BT_SOL, 25 | BT_SEMI, 26 | BT_NUM, 27 | BT_LSQB, 28 | BT_S, 29 | BT_NMSTRT, 30 | BT_COLON, 31 | BT_HEX, 32 | BT_DIGIT, 33 | BT_NAME, 34 | BT_MINUS, 35 | BT_OTHER, /* known not to be a name or name start character */ 36 | BT_NONASCII, /* might be a name or name start character */ 37 | BT_PERCNT, 38 | BT_LPAR, 39 | BT_RPAR, 40 | BT_AST, 41 | BT_PLUS, 42 | BT_COMMA, 43 | BT_VERBAR 44 | }; 45 | 46 | #include 47 | -------------------------------------------------------------------------------- /src/Import/src/FMI/fmi_import_options.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2022 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 . 14 | */ 15 | 16 | #include "FMI/fmi_import_options.h" 17 | #include "../src/FMI/fmi_util_options_impl.h" 18 | 19 | void fmi_import_set_option_loadlibrary_flag(fmi_import_options_t* options, jm_portability_loadlibrary_flag_t flag) { 20 | options->loadlibrary_flag = flag; 21 | } 22 | -------------------------------------------------------------------------------- /src/XML/NOTE: -------------------------------------------------------------------------------- 1 | If FMILIB_BUILD_LEX_AND_PARSER_FILES is set in the cmake build, the resulting 2 | generated sources has to be modified by hand. Lines containing the following 3 | content: 4 | 5 | #ifndef YY_NO_UNISTD_H 6 | /* Special case for "unistd.h", since it is non-ANSI. We include it way 7 | * down here because we want the user's section 1 to have been scanned first. 8 | * The user has a chance to override it with an option. 9 | */ 10 | #include 11 | #endif 12 | 13 | needs to be updated to: 14 | 15 | #ifndef YY_NO_UNISTD_H 16 | /* Special case for "unistd.h", since it is non-ANSI. We include it way 17 | * down here because we want the user's section 1 to have been scanned first. 18 | * The user has a chance to override it with an option. 19 | */ 20 | #include 21 | #else 22 | /*windows compatibility case*/ 23 | #include 24 | #define isatty _isatty 25 | #define fileno _fileno 26 | #endif -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/alias_validation/consistent_real_start_values2/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/alias_validation/consistent_str_start_values/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/alias_validation/inconsistent_int_start_values2/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /ThirdParty/Expat/expat-2.1.0/conftools/mkinstalldirs: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # mkinstalldirs --- make directory hierarchy 3 | # Author: Noah Friedman 4 | # Created: 1993-05-16 5 | # Public domain 6 | 7 | # $Id: mkinstalldirs,v 1.1 2000/09/18 16:26:21 coopercc Exp $ 8 | 9 | errstatus=0 10 | 11 | for file 12 | do 13 | set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` 14 | shift 15 | 16 | pathcomp= 17 | for d 18 | do 19 | pathcomp="$pathcomp$d" 20 | case "$pathcomp" in 21 | -* ) pathcomp=./$pathcomp ;; 22 | esac 23 | 24 | if test ! -d "$pathcomp"; then 25 | echo "mkdir $pathcomp" 26 | 27 | mkdir "$pathcomp" || lasterr=$? 28 | 29 | if test ! -d "$pathcomp"; then 30 | errstatus=$lasterr 31 | fi 32 | fi 33 | 34 | pathcomp="$pathcomp/" 35 | done 36 | done 37 | 38 | exit $errstatus 39 | 40 | # mkinstalldirs ends here 41 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/alias_validation/medium_valid_alias_set/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Test/fmil_test.h: -------------------------------------------------------------------------------- 1 | #ifndef FMILIB_TEST_H 2 | #define FMILIB_TEST_H 3 | 4 | #include 5 | 6 | #define TEST_FAILED(msg) \ 7 | do { \ 8 | printf(" %s: %s\n", __FUNCTION__, msg); \ 9 | return 0; \ 10 | } while (0) 11 | 12 | #define ASSERT_MSG(cond, msg) \ 13 | do { \ 14 | if (!(cond)) { \ 15 | TEST_FAILED(msg); \ 16 | } \ 17 | } while (0) 18 | 19 | #define TEST_OK (1) 20 | 21 | #endif /* FMILIB_TEST_H */ 22 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/alias_validation/consistent_real_start_values/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/alias_validation/consistent_int_start_values/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /ThirdParty/Expat/expat-2.1.0/lib/amigaconfig.h: -------------------------------------------------------------------------------- 1 | #ifndef AMIGACONFIG_H 2 | #define AMIGACONFIG_H 3 | 4 | /* 1234 = LIL_ENDIAN, 4321 = BIGENDIAN */ 5 | #define BYTEORDER 4321 6 | 7 | /* Define to 1 if you have the `bcopy' function. */ 8 | #define HAVE_BCOPY 1 9 | 10 | /* Define to 1 if you have the header file. */ 11 | #undef HAVE_CHECK_H 12 | 13 | /* Define to 1 if you have the `memmove' function. */ 14 | #define HAVE_MEMMOVE 1 15 | 16 | /* Define to 1 if you have the header file. */ 17 | #define HAVE_UNISTD_H 1 18 | 19 | /* whether byteorder is bigendian */ 20 | #define WORDS_BIGENDIAN 21 | 22 | /* Define to specify how much context to retain around the current parse 23 | point. */ 24 | #define XML_CONTEXT_BYTES 1024 25 | 26 | /* Define to make parameter entity parsing functionality available. */ 27 | #define XML_DTD 28 | 29 | /* Define to make XML Namespaces functionality available. */ 30 | #define XML_NS 31 | 32 | #endif /* AMIGACONFIG_H */ 33 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/alias_validation/consistent_bool_start_values/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Config.cmake/config_fmilib.c.cmake: -------------------------------------------------------------------------------- 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 . 14 | */ 15 | 16 | #include "fmilib_config.h" 17 | 18 | const char * fmilib_build_stamp = 19 | "Built on: " __DATE__ " " __TIME__ "\n" 20 | "Last changed on: @FMILibrary_WC_LAST_CHANGED_DATE@\n" 21 | "Revision: @FMILibrary_WC_REVISION@"; 22 | 23 | 24 | const char* fmilib_get_build_stamp(void) { 25 | return fmilib_build_stamp; 26 | } -------------------------------------------------------------------------------- /ThirdParty/Minizip/minizip/iowin32.h: -------------------------------------------------------------------------------- 1 | /* iowin32.h -- IO base function header for compress/uncompress .zip 2 | Version 1.1, February 14h, 2010 3 | part of the MiniZip project - ( http://www.winimage.com/zLibDll/minizip.html ) 4 | 5 | Copyright (C) 1998-2010 Gilles Vollant (minizip) ( http://www.winimage.com/zLibDll/minizip.html ) 6 | 7 | Modifications for Zip64 support 8 | Copyright (C) 2009-2010 Mathias Svensson ( http://result42.com ) 9 | 10 | For more info read MiniZip_info.txt 11 | 12 | */ 13 | 14 | #include 15 | 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | void fill_win32_filefunc OF((zlib_filefunc_def* pzlib_filefunc_def)); 22 | void fill_win32_filefunc64 OF((zlib_filefunc64_def* pzlib_filefunc_def)); 23 | void fill_win32_filefunc64A OF((zlib_filefunc64_def* pzlib_filefunc_def)); 24 | void fill_win32_filefunc64W OF((zlib_filefunc64_def* pzlib_filefunc_def)); 25 | 26 | #ifdef __cplusplus 27 | } 28 | #endif 29 | -------------------------------------------------------------------------------- /ThirdParty/Expat/expat-2.1.0/tests/chardata.h: -------------------------------------------------------------------------------- 1 | /* chardata.h 2 | 3 | Interface to some helper routines used to accumulate and check text 4 | and attribute content. 5 | */ 6 | 7 | #ifdef __cplusplus 8 | extern "C" { 9 | #endif 10 | 11 | #ifndef XML_CHARDATA_H 12 | #define XML_CHARDATA_H 1 13 | 14 | #ifndef XML_VERSION 15 | #include "expat.h" /* need XML_Char */ 16 | #endif 17 | 18 | 19 | typedef struct { 20 | int count; /* # of chars, < 0 if not set */ 21 | XML_Char data[1024]; 22 | } CharData; 23 | 24 | 25 | void CharData_Init(CharData *storage); 26 | 27 | void CharData_AppendString(CharData *storage, const char *s); 28 | 29 | void CharData_AppendXMLChars(CharData *storage, const XML_Char *s, int len); 30 | 31 | int CharData_CheckString(CharData *storage, const char *s); 32 | 33 | int CharData_CheckXMLChars(CharData *storage, const XML_Char *s); 34 | 35 | 36 | #endif /* XML_CHARDATA_H */ 37 | 38 | #ifdef __cplusplus 39 | } 40 | #endif 41 | -------------------------------------------------------------------------------- /ThirdParty/Expat/expat-2.1.0/xmlwf/xmltchar.h: -------------------------------------------------------------------------------- 1 | #ifdef XML_UNICODE 2 | #ifndef XML_UNICODE_WCHAR_T 3 | #error xmlwf requires a 16-bit Unicode-compatible wchar_t 4 | #endif 5 | #define T(x) L ## x 6 | #define ftprintf fwprintf 7 | #define tfopen _wfopen 8 | #define fputts fputws 9 | #define puttc putwc 10 | #define tcscmp wcscmp 11 | #define tcscpy wcscpy 12 | #define tcscat wcscat 13 | #define tcschr wcschr 14 | #define tcsrchr wcsrchr 15 | #define tcslen wcslen 16 | #define tperror _wperror 17 | #define topen _wopen 18 | #define tmain wmain 19 | #define tremove _wremove 20 | #else /* not XML_UNICODE */ 21 | #define T(x) x 22 | #define ftprintf fprintf 23 | #define tfopen fopen 24 | #define fputts fputs 25 | #define puttc putc 26 | #define tcscmp strcmp 27 | #define tcscpy strcpy 28 | #define tcscat strcat 29 | #define tcschr strchr 30 | #define tcsrchr strrchr 31 | #define tcslen strlen 32 | #define tperror perror 33 | #define topen open 34 | #define tmain main 35 | #define tremove remove 36 | #endif /* not XML_UNICODE */ 37 | -------------------------------------------------------------------------------- /src/Util/src/FMI/fmi_version.c: -------------------------------------------------------------------------------- 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 . 14 | */ 15 | 16 | #include 17 | #include 18 | 19 | static const char* fmi_versions[] = { 20 | "1.0", 21 | "2.0" 22 | }; 23 | 24 | const char * fmi_version_to_string(fmi_version_enu_t v){ 25 | if( (v <= fmi_version_unknown_enu) || (v > fmi_version_unsupported_enu - 1)) { 26 | return "unknown"; 27 | } 28 | return fmi_versions[v - 1]; 29 | } 30 | 31 | -------------------------------------------------------------------------------- /src/Util/src/FMI/fmi_util_options_impl.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2021 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 . 14 | */ 15 | 16 | #ifndef FMI_UTIL_OPTIONS_IMPL_H 17 | #define FMI_UTIL_OPTIONS_IMPL_H 18 | 19 | #include 20 | 21 | #ifdef __cplusplus 22 | extern "C" { 23 | #endif 24 | 25 | struct fmi_util_options_t { 26 | jm_portability_loadlibrary_flag_t loadlibrary_flag; 27 | }; 28 | 29 | #ifdef __cplusplus 30 | } 31 | #endif 32 | 33 | #endif /* FMI_UTIL_OPTIONS_IMPL_H */ 34 | -------------------------------------------------------------------------------- /ThirdParty/Minizip/minizip/make_vms.com: -------------------------------------------------------------------------------- 1 | $ if f$search("ioapi.h_orig") .eqs. "" then copy ioapi.h ioapi.h_orig 2 | $ open/write zdef vmsdefs.h 3 | $ copy sys$input: zdef 4 | $ deck 5 | #define unix 6 | #define fill_zlib_filefunc64_32_def_from_filefunc32 fillzffunc64from 7 | #define Write_Zip64EndOfCentralDirectoryLocator Write_Zip64EoDLocator 8 | #define Write_Zip64EndOfCentralDirectoryRecord Write_Zip64EoDRecord 9 | #define Write_EndOfCentralDirectoryRecord Write_EoDRecord 10 | $ eod 11 | $ close zdef 12 | $ copy vmsdefs.h,ioapi.h_orig ioapi.h 13 | $ cc/include=[--]/prefix=all ioapi.c 14 | $ cc/include=[--]/prefix=all miniunz.c 15 | $ cc/include=[--]/prefix=all unzip.c 16 | $ cc/include=[--]/prefix=all minizip.c 17 | $ cc/include=[--]/prefix=all zip.c 18 | $ link miniunz,unzip,ioapi,[--]libz.olb/lib 19 | $ link minizip,zip,ioapi,[--]libz.olb/lib 20 | $ mcr []minizip test minizip_info.txt 21 | $ mcr []miniunz -l test.zip 22 | $ rename minizip_info.txt; minizip_info.txt_old 23 | $ mcr []miniunz test.zip 24 | $ delete test.zip;* 25 | $exit 26 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | # This file wraps the CMake build system for FMI Library, and is used by 2 | # Jenkins to build some predetermined configurations, do testing as a separate 3 | # stage, and build the documentation. 4 | 5 | include $(CONFIG_FILE) 6 | 7 | .PHONY: install test documentation generate clean 8 | 9 | install: generate 10 | cd $(BUILD_DIR) && \ 11 | cmake --build . --config MinSizeRel --target '$@' 12 | 13 | test: generate 14 | cd $(BUILD_DIR) && \ 15 | ctest -C MinSizeRel 16 | 17 | documentation: generate 18 | cd $(BUILD_DIR) && \ 19 | make doc 20 | 21 | generate: 22 | mkdir $(BUILD_DIR) || true 23 | cd $(BUILD_DIR) && \ 24 | cmake -DFMILIB_INSTALL_PREFIX=../$(INSTALL_DIR) \ 25 | -DFMILIB_GENERATE_DOXYGEN_DOC=$(GENERATE_DOXYGEN_DOC) \ 26 | -DFMILIB_BUILD_WITH_STATIC_RTLIB=$(BUILD_WITH_STATIC_RTLIB) \ 27 | -DFMILIB_BUILD_TESTS=$(BUILD_TESTS) \ 28 | -DFMILIB_TEST_LOCALE=$(TEST_LOCALE) \ 29 | $(FMILIB_CMAKE_CUSTOM_FLAGS) \ 30 | -G $(GENERATOR) \ 31 | ../$(SRC_DIR) 32 | 33 | clean: 34 | rm -rf -v build-* install-* 35 | -------------------------------------------------------------------------------- /Config.cmake/fmilib.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 . 14 | */ 15 | 16 | /** \file fmilib.h 17 | \brief Include file to be used in client applications of the FMI Library. 18 | \defgroup fmi_import FMI import library 19 | */ 20 | 21 | #ifndef FMILIB_H_ 22 | #define FMILIB_H_ 23 | 24 | #include 25 | #include "fmilib_config.h" 26 | 27 | #include 28 | #include 29 | #include 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /Test/try_to_compress_this_file.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /ThirdParty/Expat/expat-2.1.0/tests/benchmark/benchmark.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "benchmark"=.\benchmark.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | Begin Project Dependency 15 | Project_Dep_Name expat 16 | End Project Dependency 17 | }}} 18 | 19 | ############################################################################### 20 | 21 | Project: "expat"=..\..\lib\expat.dsp - Package Owner=<4> 22 | 23 | Package=<5> 24 | {{{ 25 | }}} 26 | 27 | Package=<4> 28 | {{{ 29 | }}} 30 | 31 | ############################################################################### 32 | 33 | Global: 34 | 35 | Package=<5> 36 | {{{ 37 | }}} 38 | 39 | Package=<3> 40 | {{{ 41 | }}} 42 | 43 | ############################################################################### 44 | 45 | -------------------------------------------------------------------------------- /ThirdParty/CMakeModules/UseDoxygen/cmake_uninstall.cmake.in: -------------------------------------------------------------------------------- 1 | IF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt") 2 | MESSAGE(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"") 3 | ENDIF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt") 4 | 5 | FILE(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files) 6 | STRING(REGEX REPLACE "\n" ";" files "${files}") 7 | FOREACH(file ${files}) 8 | MESSAGE(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"") 9 | IF(EXISTS "$ENV{DESTDIR}${file}") 10 | EXEC_PROGRAM( 11 | "@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\"" 12 | OUTPUT_VARIABLE rm_out 13 | RETURN_VALUE rm_retval 14 | ) 15 | IF(NOT "${rm_retval}" STREQUAL 0) 16 | MESSAGE(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"") 17 | ENDIF(NOT "${rm_retval}" STREQUAL 0) 18 | ELSE(EXISTS "$ENV{DESTDIR}${file}") 19 | MESSAGE(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.") 20 | ENDIF(EXISTS "$ENV{DESTDIR}${file}") 21 | ENDFOREACH(file) 22 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/alias_validation/inconsistent_enum_start_values/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /src/Util/include/FMI/fmi_util_options.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2021 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 . 14 | */ 15 | 16 | #ifndef FMI_UTIL_OPTIONS_H 17 | #define FMI_UTIL_OPTIONS_H 18 | 19 | #include 20 | 21 | #ifdef __cplusplus 22 | extern "C" { 23 | #endif 24 | 25 | typedef struct fmi_util_options_t fmi_util_options_t; 26 | 27 | fmi_util_options_t* fmi_util_allocate_options(jm_callbacks* cb); 28 | 29 | void fmi_util_free_options(jm_callbacks* cb, fmi_util_options_t* opts); 30 | 31 | #ifdef __cplusplus 32 | } 33 | #endif 34 | 35 | #endif /* FMI_UTIL_OPTIONS_H */ 36 | -------------------------------------------------------------------------------- /ThirdParty/c99_snprintf/c99-snprintf_1.1/example.c: -------------------------------------------------------------------------------- 1 | /* $Id: example.c,v 1.1.1.1 2008/01/06 03:24:00 holger Exp $ */ 2 | 3 | #if HAVE_CONFIG_H 4 | #include 5 | #endif /* HAVE_CONFIG_H */ 6 | 7 | #include 8 | #include /* For free(3). */ 9 | #include "system.h" 10 | 11 | int 12 | main(void) 13 | { 14 | FILE *fp; 15 | char *buf; 16 | unsigned int random; 17 | 18 | if ((fp = fopen("/dev/urandom", "r")) == NULL && 19 | (fp = fopen("/dev/random", "r")) == NULL) { 20 | perror("Cannot open random device"); 21 | return 1; 22 | } 23 | if (fread(&random, sizeof(random), 1, fp) != 1) { 24 | (void)fputs("Cannot read random device.", stderr); 25 | return 1; 26 | } 27 | if (fclose(fp) != 0) { 28 | perror("Cannot close random device"); 29 | return 1; 30 | } 31 | 32 | /* We never heard of printf(3), so we use asprintf(3)/puts(3) :-) */ 33 | if (asprintf(&buf, "Random %zu-bit integer: %#.*x", 34 | sizeof(random) * 8, (int)sizeof(random) * 2, random) < 0) { 35 | perror("asprintf(3) failed"); 36 | return 1; 37 | } 38 | (void)puts(buf); 39 | free(buf); 40 | return 0; 41 | } 42 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/alias_validation/inconsistent_neg_enum_start_values/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /ThirdParty/Zlib/Makefile.am: -------------------------------------------------------------------------------- 1 | ZLIB_BUILD_DIR=$(abs_builddir)/../../zlib_build 2 | ZLIB_SRC_DIR=ThirdParty/Zlib/zlib-1.2.6 3 | ZLIB_INSTALL_DIR=$(abs_top_builddir)/zlib_install 4 | 5 | $(ZLIB_BUILD_DIR): 6 | mkdir -p $(ZLIB_BUILD_DIR) && \ 7 | cd $(ZLIB_BUILD_DIR) && \ 8 | case $(build) in \ 9 | *-cygwin*) \ 10 | cmake -G "MSYS Makefiles" $(abs_top_srcdir)/$(ZLIB_SRC_DIR) -DCMAKE_INSTALL_PREFIX=$(ZLIB_INSTALL_DIR) -DBUILD_SHARED_LIBS=OFF ;; \ 11 | *-mingw*) \ 12 | cmake -G "MSYS Makefiles" $(abs_top_srcdir)/$(ZLIB_SRC_DIR) -DCMAKE_INSTALL_PREFIX=$(ZLIB_INSTALL_DIR) -DBUILD_SHARED_LIBS=OFF ;; \ 13 | *-apple*) \ 14 | cmake $(abs_top_srcdir)/$(ZLIB_SRC_DIR) -DCMAKE_INSTALL_PREFIX=$(ZLIB_INSTALL_DIR) -DBUILD_SHARED_LIBS=OFF ;; \ 15 | *) \ 16 | cmake $(abs_top_srcdir)/$(ZLIB_SRC_DIR) -DCMAKE_INSTALL_PREFIX=$(ZLIB_INSTALL_DIR) -DBUILD_SHARED_LIBS=OFF ;; \ 17 | esac 18 | 19 | all-local: $(ZLIB_BUILD_DIR) 20 | cd $(ZLIB_BUILD_DIR) && make $(AM_MAKEFLAGS) install 21 | 22 | check-local: 23 | cd $(ZLIB_BUILD_DIR) && $(MAKE) $(AM_MAKEFLAGS) test 24 | 25 | clean-local: 26 | cd $(ZLIB_BUILD_DIR) && $(MAKE) $(AM_MAKEFLAGS) clean 27 | 28 | -------------------------------------------------------------------------------- /src/Import/src/FMI1/fmi1_import_variable_list_impl.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 . 14 | */ 15 | 16 | #ifndef FMI1_IMPORT_VARIABLELISTIMPL_H 17 | #define FMI1_IMPORT_VARIABLELISTIMPL_H 18 | 19 | #include 20 | #include 21 | #include 22 | 23 | #ifdef __cplusplus 24 | extern "C" { 25 | #endif 26 | 27 | struct fmi1_import_variable_list_t { 28 | fmi1_import_t* fmu; 29 | jm_vector(jm_voidp) variables; 30 | fmi1_value_reference_t* vr; 31 | }; 32 | 33 | #ifdef __cplusplus 34 | } 35 | #endif 36 | 37 | #endif /* FMI1_XML_VARIABLELISTIMPL_H */ 38 | -------------------------------------------------------------------------------- /src/Import/src/FMI2/fmi2_import_variable_list_impl.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 . 14 | */ 15 | 16 | #ifndef FMI2_IMPORT_VARIABLELISTIMPL_H 17 | #define FMI2_IMPORT_VARIABLELISTIMPL_H 18 | 19 | #include 20 | #include 21 | #include 22 | 23 | #ifdef __cplusplus 24 | extern "C" { 25 | #endif 26 | 27 | struct fmi2_import_variable_list_t { 28 | fmi2_import_t* fmu; 29 | jm_vector(jm_voidp) variables; 30 | fmi2_value_reference_t* vr; 31 | }; 32 | 33 | #ifdef __cplusplus 34 | } 35 | #endif 36 | 37 | #endif /* FMI2_XML_VARIABLELISTIMPL_H */ 38 | -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/alias_validation/consistent_enum_start_values/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /src/XML/src/FMI/fmi_xml_context_impl.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 . 14 | */ 15 | 16 | #ifndef FMI_XML_CONTEXT_IMPL_H 17 | #define FMI_XML_CONTEXT_IMPL_H 18 | 19 | #include 20 | #include 21 | #include 22 | #include 23 | #include 24 | 25 | #include 26 | #include 27 | 28 | #ifdef __cplusplus 29 | extern "C" { 30 | #endif 31 | 32 | struct fmi_xml_context_t { 33 | jm_callbacks* callbacks; 34 | 35 | XML_Parser parser; 36 | 37 | fmi_version_enu_t fmi_version; 38 | 39 | int configuration; 40 | }; 41 | 42 | #ifdef __cplusplus 43 | } 44 | #endif 45 | 46 | #endif /* FMI_XML_CONTEXT_H */ -------------------------------------------------------------------------------- /src/XML/include/FMI1/fmi1_xml_cosim.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 . 14 | */ 15 | 16 | #ifndef FMI_XML_COSIM_H 17 | #define FMI_XML_COSIM_H 18 | 19 | #ifdef __cplusplus 20 | extern "C" { 21 | #endif 22 | 23 | #include "fmi1_xml_model_description.h" 24 | 25 | const char* fmi1_xml_get_entry_point(fmi1_xml_model_description_t* ); 26 | const char* fmi1_xml_get_mime_type(fmi1_xml_model_description_t* ); 27 | int fmi1_xml_get_manual_start(fmi1_xml_model_description_t* ); 28 | 29 | size_t fmi1_xml_get_number_of_additional_models(fmi1_xml_model_description_t* md); 30 | 31 | const char* fmi1_xml_get_additional_model_name(fmi1_xml_model_description_t* md, size_t index); 32 | 33 | #ifdef __cplusplus 34 | } 35 | #endif 36 | #endif /* FMI_XML_COSIM_H */ 37 | -------------------------------------------------------------------------------- /src/XML/include/FMI2/fmi2_xml_cosim.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 . 14 | */ 15 | 16 | #ifndef FMI_XML_COSIM_H 17 | #define FMI_XML_COSIM_H 18 | 19 | #ifdef __cplusplus 20 | extern "C" { 21 | #endif 22 | 23 | #include "fmi2_xml_model_description.h" 24 | 25 | const char* fmi2_xml_get_entry_point(fmi2_xml_model_description_t* ); 26 | const char* fmi2_xml_get_mime_type(fmi2_xml_model_description_t* ); 27 | int fmi2_xml_get_manual_start(fmi2_xml_model_description_t* ); 28 | 29 | size_t fmi2_xml_get_number_of_additional_models(fmi2_xml_model_description_t* md); 30 | 31 | const char* fmi2_xml_get_additional_model_name(fmi2_xml_model_description_t* md, size_t index); 32 | 33 | #ifdef __cplusplus 34 | } 35 | #endif 36 | #endif /* FMI_XML_COSIM_H */ 37 | -------------------------------------------------------------------------------- /ThirdParty/Expat/expat-2.1.0/COPYING: -------------------------------------------------------------------------------- 1 | Copyright (c) 1998, 1999, 2000 Thai Open Source Software Center Ltd 2 | and Clark Cooper 3 | Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006 Expat maintainers. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | "Software"), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included 14 | in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 21 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 22 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /src/Import/src/FMI/fmi_import_context_impl.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 . 14 | */ 15 | 16 | #ifndef FMI_XML_CONTEXT_IMPL_H 17 | #define FMI_XML_CONTEXT_IMPL_H 18 | 19 | #include 20 | 21 | #include 22 | #include 23 | #include 24 | 25 | #include 26 | #include 27 | 28 | #ifdef __cplusplus 29 | extern "C" { 30 | #endif 31 | 32 | struct fmi_xml_context_t { 33 | jm_callbacks* callbacks; 34 | 35 | XML_Parser parser; 36 | 37 | fmi_version_enu_t fmi_version; 38 | 39 | int configuration; 40 | }; 41 | 42 | #ifdef __cplusplus 43 | } 44 | #endif 45 | 46 | #endif /* FMI_XML_CONTEXT_H */ -------------------------------------------------------------------------------- /Test/FMI1/parser_test_xmls/variable_bad_type_variability/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /ThirdParty/Expat/expat-2.1.0/win32/MANIFEST.txt: -------------------------------------------------------------------------------- 1 | Overview of the Expat distribution 2 | 3 | The Expat distribution creates several subdirectories on your system. 4 | Some of these directories contain components of interest to all Expat 5 | users, and some contain material of interest to developers who wish to 6 | use Expat in their applications. In the list below, is the 7 | directory you specified to the installer. 8 | 9 | Directory Contents 10 | --------------------------------------------------------------------- 11 | \ Some general information files. 12 | 13 | \Doc\ API documentation for developers. 14 | 15 | \Bin\ Pre-compiled dynamic libraries for developers. 16 | Pre-compiled static libraries for developers (*MT.lib). 17 | The XML well-formedness checker xmlwf. 18 | 19 | \Source\ Source code, which may interest some developers, 20 | including a workspace for Microsft Visual C++. 21 | The source code includes the parser, the well- 22 | formedness checker, and a couple of small sample 23 | applications. 24 | 25 | \Source\bcb5\ Project files for Borland C++ Builder 5 and BCC 5.5. 26 | 27 | 28 | -------------------------------------------------------------------------------- /ThirdParty/Zlib/zlib-1.2.6/win32/zlib1.rc: -------------------------------------------------------------------------------- 1 | #include 2 | #include "../zlib.h" 3 | 4 | #ifdef GCC_WINDRES 5 | VS_VERSION_INFO VERSIONINFO 6 | #else 7 | VS_VERSION_INFO VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE 8 | #endif 9 | FILEVERSION ZLIB_VER_MAJOR,ZLIB_VER_MINOR,ZLIB_VER_REVISION,0 10 | PRODUCTVERSION ZLIB_VER_MAJOR,ZLIB_VER_MINOR,ZLIB_VER_REVISION,0 11 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 12 | #ifdef _DEBUG 13 | FILEFLAGS 1 14 | #else 15 | FILEFLAGS 0 16 | #endif 17 | FILEOS VOS__WINDOWS32 18 | FILETYPE VFT_DLL 19 | FILESUBTYPE 0 // not used 20 | BEGIN 21 | BLOCK "StringFileInfo" 22 | BEGIN 23 | BLOCK "040904E4" 24 | //language ID = U.S. English, char set = Windows, Multilingual 25 | BEGIN 26 | VALUE "FileDescription", "zlib data compression library\0" 27 | VALUE "FileVersion", ZLIB_VERSION "\0" 28 | VALUE "InternalName", "zlib1.dll\0" 29 | VALUE "LegalCopyright", "(C) 1995-2006 Jean-loup Gailly & Mark Adler\0" 30 | VALUE "OriginalFilename", "zlib1.dll\0" 31 | VALUE "ProductName", "zlib\0" 32 | VALUE "ProductVersion", ZLIB_VERSION "\0" 33 | VALUE "Comments", "For more information visit http://www.zlib.net/\0" 34 | END 35 | END 36 | BLOCK "VarFileInfo" 37 | BEGIN 38 | VALUE "Translation", 0x0409, 1252 39 | END 40 | END 41 | -------------------------------------------------------------------------------- /src/XML/src/FMI1/fmi1_xml_vendor_annotations_impl.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 . 14 | */ 15 | 16 | #ifndef FMI1_XML_VENDORANNOTATIONS_H 17 | #define FMI1_XML_VENDORANNOTATIONS_H 18 | 19 | #include 20 | 21 | #include 22 | 23 | #ifdef __cplusplus 24 | extern "C" { 25 | #endif 26 | 27 | struct fmi1_xml_annotation_t { 28 | const char* name; 29 | char value[1]; 30 | }; 31 | 32 | struct fmi1_xml_vendor_t { 33 | jm_vector(jm_named_ptr) annotations; 34 | char name[1]; 35 | }; 36 | 37 | void fmi1_xml_vendor_free(fmi1_xml_vendor_t* v); 38 | 39 | struct fmi1_xml_vendor_list_t { 40 | jm_vector(jm_voidp) vendors; 41 | }; 42 | 43 | #ifdef __cplusplus 44 | } 45 | #endif 46 | 47 | #endif /* FMI1_XML_VENDORANNOTATIONS_H */ 48 | -------------------------------------------------------------------------------- /src/Util/src/FMI/fmi_util_options.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2021 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 . 14 | */ 15 | 16 | #include "FMI/fmi_util_options.h" 17 | #include "JM/jm_portability.h" 18 | 19 | #include "../src/FMI/fmi_util_options_impl.h" 20 | 21 | 22 | static const char* MODULE = "FMIUT"; 23 | 24 | fmi_util_options_t* fmi_util_allocate_options(jm_callbacks* cb) { 25 | fmi_util_options_t* opts = cb->malloc(sizeof(fmi_util_options_t)); 26 | if (!opts) { 27 | jm_log_fatal(cb, MODULE, "Could not allocate memory"); 28 | return NULL; 29 | } 30 | 31 | opts->loadlibrary_flag = jm_portability_get_load_dll_handle_default_flag(); 32 | 33 | return opts; 34 | } 35 | 36 | void fmi_util_free_options(jm_callbacks* cb, fmi_util_options_t* opts) { 37 | if (!opts) { 38 | return; 39 | } 40 | cb->free(opts); 41 | } 42 | -------------------------------------------------------------------------------- /src/Util/include/FMI/fmi_version.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 . 14 | */ 15 | 16 | #ifndef FMI_VERSION_H 17 | #define FMI_VERSION_H 18 | #include 19 | 20 | #ifdef __cplusplus 21 | extern "C" { 22 | #endif 23 | 24 | /** 25 | @file fmi_version.h 26 | \brief Enum defining supported FMI versions. 27 | 28 | */ 29 | /** \addtogroup jm_utils 30 | * @{ 31 | */ 32 | 33 | /** \brief Suported versions of FMI standard */ 34 | typedef enum 35 | { 36 | fmi_version_unknown_enu = 0, 37 | fmi_version_1_enu, 38 | fmi_version_2_0_enu, 39 | fmi_version_unsupported_enu 40 | } fmi_version_enu_t; 41 | 42 | /** Convert version enum into string */ 43 | FMILIB_EXPORT 44 | const char * fmi_version_to_string(fmi_version_enu_t v); 45 | 46 | /** @} */ 47 | #ifdef __cplusplus 48 | } 49 | #endif 50 | 51 | /* JM_TYPES_H */ 52 | #endif 53 | -------------------------------------------------------------------------------- /FMILIB_Acknowledgements.txt: -------------------------------------------------------------------------------- 1 | % File: FMILIB_Acknowledgements.txt 2 | % Acknowledgements on the use of third party software inside for the FMILIB. 3 | % Note: Content of this file is used verbatim in doxygen generated documentation. 4 | % 5 | 6 | \section Acknowledgements 7 | The FMI Library utilizes contains code from third party tools and packages. 8 | The respective copyright information and licenses are listed with URL 9 | references to the full texts. 10 | 11 | - \b eXPat \n 12 | The parsing of the file modelDescription.xml is using eXpat.\n 13 | Homepage: \n 14 | MIT License: 15 | 16 | - \b Minizip \n 17 | The unziping of the FMU is performed partially by using Minizip library.\n 18 | Homepage: .\n 19 | Condition of use and distribution are the same as Zlib 20 | . 21 | 22 | - \b Zlib \n 23 | The unziping is performed by using Zlib library called via \e minizip library.\n 24 | Homepage: .\n 25 | Zlib License: . 26 | 27 | - \b C99 snprintf \n 28 | C99 snprintf library is used to realize the snprintf functionality staying with C89 29 | code.\n 30 | Homepage: http://www.jhweiss.de/software/snprintf.html \n 31 | The code is free to use. See notice in the COPYING file included with the code. -------------------------------------------------------------------------------- /src/XML/src/FMI1/fmi1_xml_capabilities_impl.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 . 14 | */ 15 | 16 | #ifndef FMI1_XML_CAPABILITIES_IMPL_H 17 | #define FMI1_XML_CAPABILITIES_IMPL_H 18 | 19 | #include 20 | #ifdef __cplusplus 21 | extern "C" { 22 | #endif 23 | 24 | struct fmi1_xml_capabilities_t { 25 | int canHandleVariableCommunicationStepSize; 26 | int canHandleEvents; 27 | int canRejectSteps; 28 | int canInterpolateInputs; 29 | unsigned int maxOutputDerivativeOrder; 30 | int canRunAsynchronuously; 31 | int canSignalEvents; 32 | int canBeInstantiatedOnlyOncePerProcess; 33 | int canNotUseMemoryManagementFunctions; 34 | }; 35 | 36 | fmi1_xml_capabilities_t *fmi1_xml_default_capabilities(jm_callbacks *cb); 37 | 38 | #ifdef __cplusplus 39 | } 40 | #endif 41 | #endif /* FMI1_XML_CAPABILITIES_IMPL_H */ 42 | -------------------------------------------------------------------------------- /Test/FMI2/parser_test_xmls/variable_bad_type_variability/modelDescription.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /ThirdParty/CMakeModules/UseDoxygen/COPYING-CMAKE-SCRIPTS: -------------------------------------------------------------------------------- 1 | Redistribution and use in source and binary forms, with or without 2 | modification, are permitted provided that the following conditions 3 | are met: 4 | 5 | 1. Redistributions of source code must retain the copyright 6 | notice, this list of conditions and the following disclaimer. 7 | 2. Redistributions in binary form must reproduce the copyright 8 | notice, this list of conditions and the following disclaimer in the 9 | documentation and/or other materials provided with the distribution. 10 | 3. The name of the author may not be used to endorse or promote products 11 | derived from this software without specific prior written permission. 12 | 13 | THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 14 | IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 15 | OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 16 | IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 17 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 18 | NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 19 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 20 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22 | THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 | -------------------------------------------------------------------------------- /ThirdParty/Expat/expat-2.1.0/vms/expat_config.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2000, Clark Cooper 2 | All rights reserved. 3 | 4 | This is free software. You are permitted to copy, distribute, or modify 5 | it under the terms of the MIT/X license (contained in the COPYING file 6 | with this distribution.) 7 | */ 8 | 9 | /* Define to empty if the keyword does not work. */ 10 | #undef const 11 | 12 | /* Define if you have a working `mmap' system call. */ 13 | #undef HAVE_MMAP 14 | 15 | /* Define to `long' if doesn't define. */ 16 | #undef off_t 17 | 18 | /* Define to `unsigned' if doesn't define. */ 19 | #undef size_t 20 | 21 | /* Define if your processor stores words with the most significant 22 | byte first (like Motorola and SPARC, unlike Intel and VAX). */ 23 | #undef WORDS_BIGENDIAN 24 | 25 | /* Define if you have the bcopy function. */ 26 | #undef HAVE_BCOPY 27 | 28 | /* Define if you have the memmove function. */ 29 | #define HAVE_MEMMOVE 1 30 | 31 | /* Define if you have the header file. */ 32 | #define HAVE_UNISTD_H 1 33 | 34 | #define XML_NS 35 | #define XML_DTD 36 | 37 | #ifdef WORDS_BIGENDIAN 38 | #define XML_BYTE_ORDER 21 39 | #else 40 | #define XML_BYTE_ORDER 12 41 | #endif 42 | 43 | #define XML_CONTEXT_BYTES 1024 44 | 45 | #ifndef HAVE_MEMMOVE 46 | #ifdef HAVE_BCOPY 47 | #define memmove(d,s,l) bcopy((s),(d),(l)) 48 | #else 49 | #define memmove(d,s,l) ;punting on memmove; 50 | #endif 51 | 52 | #endif 53 | -------------------------------------------------------------------------------- /src/Import/src/FMI1/fmi1_import_vendor_annotations.c: -------------------------------------------------------------------------------- 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 . 14 | */ 15 | 16 | #include 17 | 18 | #include "fmi1_import_impl.h" 19 | 20 | const char* fmi1_import_get_vendor_name(fmi1_import_vendor_t* v) { 21 | return fmi1_xml_get_vendor_name(v); 22 | } 23 | 24 | unsigned int fmi1_import_get_number_of_vendor_annotations(fmi1_import_vendor_t* v) { 25 | return fmi1_xml_get_number_of_vendor_annotations(v); 26 | } 27 | 28 | fmi1_import_annotation_t* fmi1_import_get_vendor_annotation(fmi1_import_vendor_t* v, unsigned int index) { 29 | return fmi1_xml_get_vendor_annotation(v, index); 30 | } 31 | 32 | const char* fmi1_import_get_annotation_name(fmi1_import_annotation_t* a) { 33 | return fmi1_xml_get_annotation_name(a); 34 | } 35 | 36 | const char* fmi1_import_get_annotation_value(fmi1_import_annotation_t* a) { 37 | return fmi1_xml_get_annotation_value(a); 38 | } 39 | -------------------------------------------------------------------------------- /ThirdParty/c99_snprintf/c99-snprintf_1.1/autogen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # $Id: autogen.sh,v 1.1.1.1 2008/01/06 03:24:00 holger Exp $ 4 | 5 | for f in \ 6 | "autoheader261" \ 7 | "autoheader260" \ 8 | "autoheader" 9 | do 10 | which $f >/dev/null 2>&1 11 | if [ $? -eq 0 ]; then 12 | AUTOHEADER="${f}" 13 | break 14 | fi 15 | done 16 | 17 | for f in \ 18 | "aclocal-1.10" \ 19 | "aclocal110" \ 20 | "aclocal-1.9" \ 21 | "aclocal19" \ 22 | "aclocal" 23 | do 24 | which $f >/dev/null 2>&1 25 | if [ $? -eq 0 ]; then 26 | ACLOCAL="${f} -I m4" 27 | break 28 | fi 29 | done 30 | 31 | for f in \ 32 | "autoconf261" \ 33 | "autoconf260" \ 34 | "autoconf" 35 | do 36 | which $f >/dev/null 2>&1 37 | if [ $? -eq 0 ]; then 38 | AUTOCONF="${f}" 39 | break 40 | fi 41 | done 42 | 43 | for f in \ 44 | "automake-1.10" \ 45 | "automake110" \ 46 | "automake-1.9" \ 47 | "automake19" \ 48 | "automake" 49 | do 50 | which $f >/dev/null 2>&1 51 | if [ $? -eq 0 ]; then 52 | AUTOMAKE="${f} -a -c" 53 | break 54 | fi 55 | done 56 | 57 | if [ -z "${AUTOHEADER}" -o \ 58 | -z "${ACLOCAL}" -o \ 59 | -z "${AUTOCONF}" -o \ 60 | -z "${AUTOMAKE}" ]; then 61 | echo "$0: Cannot find (all) GNU autotools, aborting." >&2 62 | exit 1 63 | fi 64 | 65 | echo "Running GNU autotools:" 66 | echo "* ${AUTOHEADER}" ; ${AUTOHEADER} 67 | echo "* ${ACLOCAL}" ; ${ACLOCAL} 68 | echo "* ${AUTOCONF}" ; ${AUTOCONF} 69 | echo "* ${AUTOMAKE}" ; ${AUTOMAKE} 70 | -------------------------------------------------------------------------------- /src/Import/src/FMI2/fmi2_import_impl.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 . 14 | */ 15 | 16 | 17 | 18 | /** \file fmi2_import_impl.h 19 | */ 20 | 21 | #ifndef FMI2_IMPORT_IMPL_H_ 22 | #define FMI2_IMPORT_IMPL_H_ 23 | 24 | 25 | #include 26 | #include 27 | 28 | #include "../FMI/fmi_import_context_impl.h" 29 | #include "../src/FMI2/fmi2_capi_impl.h" 30 | #include "../src/FMI/fmi_util_options_impl.h" 31 | 32 | 33 | #ifdef __cplusplus 34 | extern "C" { 35 | #endif 36 | 37 | struct fmi2_import_t { 38 | char* dirPath; 39 | char* resourceLocation; 40 | jm_callbacks* callbacks; 41 | fmi2_xml_model_description_t* md; 42 | fmi2_capi_t* capi; 43 | jm_vector(char) logMessageBufferCoded; 44 | jm_vector(char) logMessageBufferExpanded; 45 | fmi_util_options_t* options; 46 | }; 47 | 48 | #ifdef __cplusplus 49 | } 50 | #endif 51 | #endif 52 | -------------------------------------------------------------------------------- /ThirdParty/Expat/expat-2.1.0/conftools/get-version.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # USAGE: get-version.sh path/to/expat.h 4 | # 5 | # This script will print Expat's version number on stdout. For example: 6 | # 7 | # $ ./conftools/get-version.sh ./lib/expat.h 8 | # 1.95.3 9 | # $ 10 | # 11 | 12 | if test $# = 0; then 13 | echo "ERROR: pathname for expat.h was not provided." 14 | echo "" 15 | echo "USAGE: $0 path/to/expat.h" 16 | exit 1 17 | fi 18 | if test $# != 1; then 19 | echo "ERROR: too many arguments were provided." 20 | echo "" 21 | echo "USAGE: $0 path/to/expat.h" 22 | exit 1 23 | fi 24 | 25 | hdr="$1" 26 | if test ! -r "$hdr"; then 27 | echo "ERROR: '$hdr' does not exist, or is not readable." 28 | exit 1 29 | fi 30 | 31 | MAJOR_VERSION="`sed -n -e '/MAJOR_VERSION/s/[^0-9]*//gp' $hdr`" 32 | MINOR_VERSION="`sed -n -e '/MINOR_VERSION/s/[^0-9]*//gp' $hdr`" 33 | MICRO_VERSION="`sed -n -e '/MICRO_VERSION/s/[^0-9]*//gp' $hdr`" 34 | 35 | # Determine how to tell echo not to print the trailing \n. This is 36 | # similar to Autoconf's @ECHO_C@ and @ECHO_N@; however, we don't 37 | # generate this file via autoconf (in fact, get-version.sh is used 38 | # to *create* ./configure), so we just do something similar inline. 39 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 40 | *c*,-n*) ECHO_N= ECHO_C=' 41 | ' ;; 42 | *c*,* ) ECHO_N=-n ECHO_C= ;; 43 | *) ECHO_N= ECHO_C='\c' ;; 44 | esac 45 | 46 | echo $ECHO_N "$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$ECHO_C" 47 | -------------------------------------------------------------------------------- /ThirdParty/Zlib/zlib-1.2.6/zlib.map: -------------------------------------------------------------------------------- 1 | ZLIB_1.2.0 { 2 | global: 3 | compressBound; 4 | deflateBound; 5 | inflateBack; 6 | inflateBackEnd; 7 | inflateBackInit_; 8 | inflateCopy; 9 | local: 10 | deflate_copyright; 11 | inflate_copyright; 12 | inflate_fast; 13 | inflate_table; 14 | zcalloc; 15 | zcfree; 16 | z_errmsg; 17 | gz_error; 18 | gz_intmax; 19 | _*; 20 | }; 21 | 22 | ZLIB_1.2.0.2 { 23 | gzclearerr; 24 | gzungetc; 25 | zlibCompileFlags; 26 | } ZLIB_1.2.0; 27 | 28 | ZLIB_1.2.0.8 { 29 | deflatePrime; 30 | } ZLIB_1.2.0.2; 31 | 32 | ZLIB_1.2.2 { 33 | adler32_combine; 34 | crc32_combine; 35 | deflateSetHeader; 36 | inflateGetHeader; 37 | } ZLIB_1.2.0.8; 38 | 39 | ZLIB_1.2.2.3 { 40 | deflateTune; 41 | gzdirect; 42 | } ZLIB_1.2.2; 43 | 44 | ZLIB_1.2.2.4 { 45 | inflatePrime; 46 | } ZLIB_1.2.2.3; 47 | 48 | ZLIB_1.2.3.3 { 49 | adler32_combine64; 50 | crc32_combine64; 51 | gzopen64; 52 | gzseek64; 53 | gztell64; 54 | inflateUndermine; 55 | } ZLIB_1.2.2.4; 56 | 57 | ZLIB_1.2.3.4 { 58 | inflateReset2; 59 | inflateMark; 60 | } ZLIB_1.2.3.3; 61 | 62 | ZLIB_1.2.3.5 { 63 | gzbuffer; 64 | gzoffset; 65 | gzoffset64; 66 | gzclose_r; 67 | gzclose_w; 68 | } ZLIB_1.2.3.4; 69 | 70 | ZLIB_1.2.5.1 { 71 | deflatePending; 72 | } ZLIB_1.2.3.5; 73 | 74 | ZLIB_1.2.5.2 { 75 | deflateResetKeep; 76 | gzflags; 77 | gzgetc_; 78 | inflateResetKeep; 79 | } ZLIB_1.2.5.1; 80 | -------------------------------------------------------------------------------- /src/XML/src/FMI1/fmi1_xml_variable_name_scan.l: -------------------------------------------------------------------------------- 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 . 14 | */ 15 | 16 | %{ 17 | #include "fmi1_xml_variable_name_parser.tab.h" 18 | #define YYSTYPE YYFMI1STYPE 19 | 20 | #define LEX_VAL(ID_NAME) return ID_NAME; 21 | %} 22 | 23 | %option bison-bridge 24 | 25 | q_name "'"({q_char}|{s_escape})+"'" 26 | nondigit [_a-zA-Z] 27 | digit [0-9] 28 | q_char {nondigit}|{digit}|[^'\\] 29 | s_escape ("\\'")|("\\\"")|("\\?")|("\\\\")|("\\a")|("\\b")|("\\f")|("\\n")|("\\r")|("\\t")|("\\v") 30 | unsigned_integer {digit}+ 31 | 32 | %option noyywrap 33 | %option reentrant 34 | 35 | %% 36 | 37 | "der(" {LEX_VAL(DER)} 38 | "(" {LEX_VAL('(')} 39 | ")" {LEX_VAL(')')} 40 | ", " {LEX_VAL(',')} 41 | "," {LEX_VAL(',')} 42 | "." {LEX_VAL('.')} 43 | "[" {LEX_VAL('[')} 44 | "]" {LEX_VAL(']')} 45 | {q_name} {LEX_VAL(Q_NAME)} 46 | {nondigit} {LEX_VAL(NONDIGIT)} 47 | {unsigned_integer} {LEX_VAL(UNSIGNED_INTEGER)} 48 | . {LEX_VAL(*yytext)} 49 | 50 | %{ 51 | %} -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | License 2 | ------- 3 | 4 | Copyright (C) 2012 Modelon AB 5 | 6 | Redistribution and use in source and binary forms, with or without 7 | modification, are permitted provided that the following conditions are met: 8 | - Redistributions of source code must retain the above copyright 9 | notice, this list of conditions and the following disclaimer. 10 | - Redistributions in binary form must reproduce the above copyright 11 | notice, this list of conditions and the following disclaimer in the 12 | documentation and/or other materials provided with the distribution. 13 | - Neither the name of the Modelon AB nor the 14 | names of its contributors may be used to endorse or promote products 15 | derived from this software without specific prior written permission. 16 | 17 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 18 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | DISCLAIMED. IN NO EVENT SHALL MODELON AB BE LIABLE FOR ANY 21 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 26 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | -------------------------------------------------------------------------------- /src/XML/src/FMI2/fmi2_xml_variable_name_scan.l: -------------------------------------------------------------------------------- 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 . 14 | */ 15 | 16 | %{ 17 | 18 | #include "fmi2_xml_variable_name_parser.tab.h" 19 | #define YYSTYPE YYFMI2STYPE 20 | 21 | #define LEX_VAL(ID_NAME) return ID_NAME; 22 | %} 23 | 24 | %option bison-bridge 25 | 26 | q_name "'"({q_char}|{s_escape})+"'" 27 | nondigit [_a-zA-Z] 28 | digit [0-9] 29 | q_char {nondigit}|{digit}|[!#$%&()*+,-\./:;<>=?@\[\]\^{}|~ ] 30 | s_escape ("\\'")|("\\\"")|("\\?")|("\\\\")|("\\a")|("\\b")|("\\f")|("\\n")|("\\r")|("\\t")|("\\v") 31 | unsigned_integer {digit}+ 32 | 33 | %option noyywrap 34 | %option reentrant 35 | 36 | %% 37 | 38 | "der(" {LEX_VAL(DER)} 39 | "(" {LEX_VAL('(')} 40 | ")" {LEX_VAL(')')} 41 | "," {LEX_VAL(',')} 42 | "." {LEX_VAL('.')} 43 | "[" {LEX_VAL('[')} 44 | "]" {LEX_VAL(']')} 45 | {q_name} {LEX_VAL(Q_NAME)} 46 | {nondigit} {LEX_VAL(NONDIGIT)} 47 | {unsigned_integer} {LEX_VAL(UNSIGNED_INTEGER);} 48 | . {LEX_VAL(*yytext)} 49 | 50 | %{ 51 | %} -------------------------------------------------------------------------------- /ThirdParty/Expat/expat-2.1.0/lib/macconfig.h: -------------------------------------------------------------------------------- 1 | /*================================================================ 2 | ** Copyright 2000, Clark Cooper 3 | ** All rights reserved. 4 | ** 5 | ** This is free software. You are permitted to copy, distribute, or modify 6 | ** it under the terms of the MIT/X license (contained in the COPYING file 7 | ** with this distribution.) 8 | ** 9 | */ 10 | 11 | #ifndef MACCONFIG_H 12 | #define MACCONFIG_H 13 | 14 | 15 | /* 1234 = LIL_ENDIAN, 4321 = BIGENDIAN */ 16 | #define BYTEORDER 4321 17 | 18 | /* Define to 1 if you have the `bcopy' function. */ 19 | #undef HAVE_BCOPY 20 | 21 | /* Define to 1 if you have the `memmove' function. */ 22 | #define HAVE_MEMMOVE 23 | 24 | /* Define to 1 if you have a working `mmap' system call. */ 25 | #undef HAVE_MMAP 26 | 27 | /* Define to 1 if you have the header file. */ 28 | #undef HAVE_UNISTD_H 29 | 30 | /* whether byteorder is bigendian */ 31 | #define WORDS_BIGENDIAN 32 | 33 | /* Define to specify how much context to retain around the current parse 34 | point. */ 35 | #undef XML_CONTEXT_BYTES 36 | 37 | /* Define to make parameter entity parsing functionality available. */ 38 | #define XML_DTD 39 | 40 | /* Define to make XML Namespaces functionality available. */ 41 | #define XML_NS 42 | 43 | /* Define to empty if `const' does not conform to ANSI C. */ 44 | #undef const 45 | 46 | /* Define to `long' if does not define. */ 47 | #define off_t long 48 | 49 | /* Define to `unsigned' if does not define. */ 50 | #undef size_t 51 | 52 | 53 | #endif /* ifndef MACCONFIG_H */ 54 | -------------------------------------------------------------------------------- /ThirdParty/Expat/expat-2.1.0/amiga/expat_base.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** Copyright (c) 2001-2009 Expat maintainers. 3 | ** 4 | ** Permission is hereby granted, free of charge, to any person obtaining 5 | ** a copy of this software and associated documentation files (the 6 | ** "Software"), to deal in the Software without restriction, including 7 | ** without limitation the rights to use, copy, modify, merge, publish, 8 | ** distribute, sublicense, and/or sell copies of the Software, and to 9 | ** permit persons to whom the Software is furnished to do so, subject to 10 | ** the following conditions: 11 | ** 12 | ** The above copyright notice and this permission notice shall be included 13 | ** in all copies or substantial portions of the Software. 14 | ** 15 | ** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 18 | ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 19 | ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 20 | ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 21 | ** SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | */ 23 | 24 | #ifndef EXPAT_BASE_H 25 | #define EXPAT_BASE_H 26 | 27 | #include 28 | #include 29 | #include 30 | #include 31 | 32 | 33 | struct ExpatBase { 34 | struct Library libNode; 35 | uint16 pad; 36 | BPTR SegList; 37 | struct ExecIFace *IExec; 38 | }; 39 | 40 | #endif 41 | -------------------------------------------------------------------------------- /ThirdParty/Expat/expat-2.1.0/xmlwf/unixfilemap.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd 2 | See the file COPYING for copying permission. 3 | */ 4 | 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | 14 | #ifndef MAP_FILE 15 | #define MAP_FILE 0 16 | #endif 17 | 18 | #include "filemap.h" 19 | 20 | int 21 | filemap(const char *name, 22 | void (*processor)(const void *, size_t, const char *, void *arg), 23 | void *arg) 24 | { 25 | int fd; 26 | size_t nbytes; 27 | struct stat sb; 28 | void *p; 29 | 30 | fd = open(name, O_RDONLY); 31 | if (fd < 0) { 32 | perror(name); 33 | return 0; 34 | } 35 | if (fstat(fd, &sb) < 0) { 36 | perror(name); 37 | close(fd); 38 | return 0; 39 | } 40 | if (!S_ISREG(sb.st_mode)) { 41 | close(fd); 42 | fprintf(stderr, "%s: not a regular file\n", name); 43 | return 0; 44 | } 45 | 46 | nbytes = sb.st_size; 47 | /* mmap fails for zero length files */ 48 | if (nbytes == 0) { 49 | static const char c = '\0'; 50 | processor(&c, 0, name, arg); 51 | close(fd); 52 | return 1; 53 | } 54 | p = (void *)mmap((caddr_t)0, (size_t)nbytes, PROT_READ, 55 | MAP_FILE|MAP_PRIVATE, fd, (off_t)0); 56 | if (p == (void *)-1) { 57 | perror(name); 58 | close(fd); 59 | return 0; 60 | } 61 | processor(p, nbytes, name, arg); 62 | munmap((caddr_t)p, nbytes); 63 | close(fd); 64 | return 1; 65 | } 66 | -------------------------------------------------------------------------------- /ThirdParty/Expat/expat-2.1.0/amiga/include/proto/expat.h: -------------------------------------------------------------------------------- 1 | #ifndef PROTO_EXPAT_H 2 | #define PROTO_EXPAT_H 3 | 4 | #ifndef LIBRARIES_EXPAT_H 5 | #include 6 | #endif 7 | 8 | /****************************************************************************/ 9 | 10 | #ifndef __NOLIBBASE__ 11 | #ifndef __USE_BASETYPE__ 12 | extern struct Library * ExpatBase; 13 | #else 14 | extern struct Library * ExpatBase; 15 | #endif /* __USE_BASETYPE__ */ 16 | #endif /* __NOLIBBASE__ */ 17 | 18 | /****************************************************************************/ 19 | 20 | #ifdef __amigaos4__ 21 | #include 22 | #ifdef __USE_INLINE__ 23 | #include 24 | #endif /* __USE_INLINE__ */ 25 | #ifndef CLIB_EXPAT_PROTOS_H 26 | #define CLIB_EXPAT_PROTOS_H 1 27 | #endif /* CLIB_EXPAT_PROTOS_H */ 28 | #ifndef __NOGLOBALIFACE__ 29 | extern struct ExpatIFace *IExpat; 30 | #endif /* __NOGLOBALIFACE__ */ 31 | #else /* __amigaos4__ */ 32 | #ifndef CLIB_EXPAT_PROTOS_H 33 | #include 34 | #endif /* CLIB_EXPAT_PROTOS_H */ 35 | #if defined(__GNUC__) 36 | #ifndef __PPC__ 37 | #include 38 | #else 39 | #include 40 | #endif /* __PPC__ */ 41 | #elif defined(__VBCC__) 42 | #ifndef __PPC__ 43 | #include 44 | #endif /* __PPC__ */ 45 | #else 46 | #include 47 | #endif /* __GNUC__ */ 48 | #endif /* __amigaos4__ */ 49 | 50 | /****************************************************************************/ 51 | 52 | #endif /* PROTO_EXPAT_H */ 53 | -------------------------------------------------------------------------------- /Config.cmake/config_test.h.cmake: -------------------------------------------------------------------------------- 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 . 14 | */ 15 | 16 | #ifndef CONFIG_TEST_H 17 | #define CONFIG_TEST_H 18 | /* PATHs to test files */ 19 | #define FMU1_DLL_ME_PATH @FMU1_DLL_ME_PATH@ 20 | #define FMU1_DLL_CS_PATH @FMU1_DLL_CS_PATH@ 21 | #define COMPRESS_DUMMY_FILE_PATH_SRC "@COMPRESS_DUMMY_FILE_PATH_SRC@" 22 | #define COMPRESS_DUMMY_FILE_PATH_DIST "@COMPRESS_DUMMY_FILE_PATH_DIST@" 23 | #define UNCOMPRESSED_DUMMY_FILE_PATH_SRC "@UNCOMPRESSED_DUMMY_FILE_PATH_SRC@" 24 | #define UNCOMPRESSED_DUMMY_FOLDER_PATH_DIST "@UNCOMPRESSED_DUMMY_FOLDER_PATH_DIST@" 25 | 26 | #define CTEST_RETURN_SUCCESS @CTEST_RETURN_SUCCESS@ 27 | #define CTEST_RETURN_FAIL @CTEST_RETURN_FAIL@ 28 | 29 | #define FMU_DUMMY_ME_MODEL_IDENTIFIER @FMU_DUMMY_ME_MODEL_IDENTIFIER@ 30 | #define FMU_DUMMY_CS_MODEL_IDENTIFIER @FMU_DUMMY_CS_MODEL_IDENTIFIER@ 31 | 32 | #cmakedefine FMILIB_LINK_TEST_TO_SHAREDLIB 33 | #if defined(FMILIB_LINK_TEST_TO_SHAREDLIB) && defined(FMILIB_BUILDING_LIBRARY) 34 | #undef FMILIB_BUILDING_LIBRARY 35 | #endif 36 | 37 | #endif 38 | 39 | 40 | -------------------------------------------------------------------------------- /src/Util/src/JM/jm_templates_inst.c: -------------------------------------------------------------------------------- 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 . 14 | */ 15 | 16 | #include "JM/jm_vector.h" 17 | 18 | #define JM_TEMPLATE_INSTANCE_TYPE char 19 | #include "JM/jm_vector_template.h" 20 | 21 | #undef JM_TEMPLATE_INSTANCE_TYPE 22 | #define JM_TEMPLATE_INSTANCE_TYPE int 23 | #include "JM/jm_vector_template.h" 24 | 25 | #undef JM_TEMPLATE_INSTANCE_TYPE 26 | #define JM_TEMPLATE_INSTANCE_TYPE double 27 | #include "JM/jm_vector_template.h" 28 | 29 | #undef JM_TEMPLATE_INSTANCE_TYPE 30 | #define JM_TEMPLATE_INSTANCE_TYPE size_t 31 | #include "JM/jm_vector_template.h" 32 | 33 | #undef JM_TEMPLATE_INSTANCE_TYPE 34 | #define JM_TEMPLATE_INSTANCE_TYPE jm_voidp 35 | #include "JM/jm_vector_template.h" 36 | 37 | #undef JM_TEMPLATE_INSTANCE_TYPE 38 | /*#undef JM_COMPAR_OP 39 | #define JM_COMPAR_OP(f,s) strcmp(f,s)*/ 40 | #define JM_TEMPLATE_INSTANCE_TYPE jm_string 41 | #include "JM/jm_vector_template.h" 42 | 43 | #undef JM_TEMPLATE_INSTANCE_TYPE 44 | #define JM_TEMPLATE_INSTANCE_TYPE jm_name_ID_map_t 45 | #include "JM/jm_vector_template.h" 46 | 47 | -------------------------------------------------------------------------------- /ThirdParty/Zlib/zlib-1.2.6/watcom/watcom_l.mak: -------------------------------------------------------------------------------- 1 | # Makefile for zlib 2 | # OpenWatcom large model 3 | # Last updated: 28-Dec-2005 4 | 5 | # To use, do "wmake -f watcom_l.mak" 6 | 7 | C_SOURCE = adler32.c compress.c crc32.c deflate.c & 8 | gzclose.c gzlib.c gzread.c gzwrite.c & 9 | infback.c inffast.c inflate.c inftrees.c & 10 | trees.c uncompr.c zutil.c 11 | 12 | OBJS = adler32.obj compress.obj crc32.obj deflate.obj & 13 | gzclose.obj gzlib.obj gzread.obj gzwrite.obj & 14 | infback.obj inffast.obj inflate.obj inftrees.obj & 15 | trees.obj uncompr.obj zutil.obj 16 | 17 | CC = wcc 18 | LINKER = wcl 19 | CFLAGS = -zq -ml -s -bt=dos -oilrtfm -fr=nul -wx 20 | ZLIB_LIB = zlib_l.lib 21 | 22 | .C.OBJ: 23 | $(CC) $(CFLAGS) $[@ 24 | 25 | all: $(ZLIB_LIB) example.exe minigzip.exe 26 | 27 | $(ZLIB_LIB): $(OBJS) 28 | wlib -b -c $(ZLIB_LIB) -+adler32.obj -+compress.obj -+crc32.obj 29 | wlib -b -c $(ZLIB_LIB) -+gzclose.obj -+gzlib.obj -+gzread.obj -+gzwrite.obj 30 | wlib -b -c $(ZLIB_LIB) -+deflate.obj -+infback.obj 31 | wlib -b -c $(ZLIB_LIB) -+inffast.obj -+inflate.obj -+inftrees.obj 32 | wlib -b -c $(ZLIB_LIB) -+trees.obj -+uncompr.obj -+zutil.obj 33 | 34 | example.exe: $(ZLIB_LIB) example.obj 35 | $(LINKER) -fe=example.exe example.obj $(ZLIB_LIB) 36 | 37 | minigzip.exe: $(ZLIB_LIB) minigzip.obj 38 | $(LINKER) -fe=minigzip.exe minigzip.obj $(ZLIB_LIB) 39 | 40 | clean: .SYMBOLIC 41 | del *.obj 42 | del $(ZLIB_LIB) 43 | @echo Cleaning done 44 | -------------------------------------------------------------------------------- /src/XML/src/FMI1/fmi1_xml_unit_impl.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 . 14 | */ 15 | 16 | #ifndef FMI1_XML_UNITIMPL_H 17 | #define FMI1_XML_UNITIMPL_H 18 | 19 | #include 20 | #include 21 | #include "FMI1/fmi1_xml_model_description.h" 22 | #include "fmi1_xml_parser.h" 23 | #ifdef __cplusplus 24 | extern "C" { 25 | #endif 26 | 27 | /* Structure encapsulating base unit information */ 28 | 29 | struct fmi1_xml_display_unit_t { 30 | double gain; 31 | double offset; 32 | fmi1_xml_unit_t* baseUnit; 33 | char displayUnit[1]; 34 | }; 35 | 36 | struct fmi1_xml_unit_t { 37 | jm_vector(jm_voidp) displayUnits; 38 | fmi1_xml_display_unit_t defaultDisplay; 39 | char baseUnit[1]; 40 | }; 41 | 42 | struct fmi1_xml_unit_definitions_t { 43 | jm_vector(jm_named_ptr) definitions; 44 | }; 45 | 46 | fmi1_xml_display_unit_t* fmi1_xml_get_parsed_unit(fmi1_xml_parser_context_t *context, jm_vector(char)* name, int sorted); 47 | 48 | #ifdef __cplusplus 49 | } 50 | #endif 51 | 52 | #endif /* FMI1_XML_UNITIMPL_H */ 53 | -------------------------------------------------------------------------------- /src/ZIP/include/FMI/fmi_zip_unzip.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 . 14 | */ 15 | 16 | 17 | #ifndef FMI_ZIP_UNZIP_H_ 18 | #define FMI_ZIP_UNZIP_H_ 19 | 20 | #ifdef __cplusplus 21 | extern "C" { 22 | #endif 23 | 24 | #include 25 | #include 26 | #include "miniunz.h" 27 | /** 28 | \file fmi_zip_unzip.h 29 | Declaration of fmi_zip_unzip() function. 30 | 31 | \addtogroup fmi_zip Interface to zlib 32 | @{ 33 | */ 34 | 35 | /** 36 | * \brief Uncompress a zip file 37 | * 38 | * @param zip_file_path Full file path of the file to uncompress. 39 | * @param output_folder Full file path of the directory where the uncompressed files are put. The folder must already exist. Files with the same name are overwritten. 40 | * @param callbacks Callback functions 41 | * @return Error status. 42 | */ 43 | jm_status_enu_t fmi_zip_unzip(const char* zip_file_path, const char* output_folder, jm_callbacks* callbacks); 44 | 45 | /** @} */ 46 | 47 | #ifdef __cplusplus 48 | } 49 | #endif 50 | 51 | #endif /* End of header file FMI_ZIP_UNZIP_H_ */ 52 | -------------------------------------------------------------------------------- /ThirdParty/Zlib/zlib-1.2.6/watcom/watcom_f.mak: -------------------------------------------------------------------------------- 1 | # Makefile for zlib 2 | # OpenWatcom flat model 3 | # Last updated: 28-Dec-2005 4 | 5 | # To use, do "wmake -f watcom_f.mak" 6 | 7 | C_SOURCE = adler32.c compress.c crc32.c deflate.c & 8 | gzclose.c gzlib.c gzread.c gzwrite.c & 9 | infback.c inffast.c inflate.c inftrees.c & 10 | trees.c uncompr.c zutil.c 11 | 12 | OBJS = adler32.obj compress.obj crc32.obj deflate.obj & 13 | gzclose.obj gzlib.obj gzread.obj gzwrite.obj & 14 | infback.obj inffast.obj inflate.obj inftrees.obj & 15 | trees.obj uncompr.obj zutil.obj 16 | 17 | CC = wcc386 18 | LINKER = wcl386 19 | CFLAGS = -zq -mf -3r -fp3 -s -bt=dos -oilrtfm -fr=nul -wx 20 | ZLIB_LIB = zlib_f.lib 21 | 22 | .C.OBJ: 23 | $(CC) $(CFLAGS) $[@ 24 | 25 | all: $(ZLIB_LIB) example.exe minigzip.exe 26 | 27 | $(ZLIB_LIB): $(OBJS) 28 | wlib -b -c $(ZLIB_LIB) -+adler32.obj -+compress.obj -+crc32.obj 29 | wlib -b -c $(ZLIB_LIB) -+gzclose.obj -+gzlib.obj -+gzread.obj -+gzwrite.obj 30 | wlib -b -c $(ZLIB_LIB) -+deflate.obj -+infback.obj 31 | wlib -b -c $(ZLIB_LIB) -+inffast.obj -+inflate.obj -+inftrees.obj 32 | wlib -b -c $(ZLIB_LIB) -+trees.obj -+uncompr.obj -+zutil.obj 33 | 34 | example.exe: $(ZLIB_LIB) example.obj 35 | $(LINKER) -ldos32a -fe=example.exe example.obj $(ZLIB_LIB) 36 | 37 | minigzip.exe: $(ZLIB_LIB) minigzip.obj 38 | $(LINKER) -ldos32a -fe=minigzip.exe minigzip.obj $(ZLIB_LIB) 39 | 40 | clean: .SYMBOLIC 41 | del *.obj 42 | del $(ZLIB_LIB) 43 | @echo Cleaning done 44 | -------------------------------------------------------------------------------- /ThirdParty/Expat/expat-2.1.0/conftools/expat.m4: -------------------------------------------------------------------------------- 1 | dnl Check if --with-expat[=PREFIX] is specified and 2 | dnl Expat >= 1.95.0 is installed in the system. 3 | dnl If yes, substitute EXPAT_CFLAGS, EXPAT_LIBS with regard to 4 | dnl the specified PREFIX and set with_expat to PREFIX, or 'yes' if PREFIX 5 | dnl has not been specified. Also HAVE_LIBEXPAT, HAVE_EXPAT_H are defined. 6 | dnl If --with-expat has not been specified, set with_expat to 'no'. 7 | dnl In addition, an Automake conditional EXPAT_INSTALLED is set accordingly. 8 | dnl This is necessary to adapt a whole lot of packages that have expat 9 | dnl bundled as a static library. 10 | AC_DEFUN([AM_WITH_EXPAT], 11 | [ AC_ARG_WITH(expat, 12 | [ --with-expat=PREFIX Use system Expat library], 13 | , with_expat=no) 14 | 15 | AM_CONDITIONAL(EXPAT_INSTALLED, test $with_expat != no) 16 | 17 | EXPAT_CFLAGS= 18 | EXPAT_LIBS= 19 | if test $with_expat != no; then 20 | if test $with_expat != yes; then 21 | EXPAT_CFLAGS="-I$with_expat/include" 22 | EXPAT_LIBS="-L$with_expat/lib" 23 | fi 24 | AC_CHECK_LIB(expat, XML_ParserCreate, 25 | [ EXPAT_LIBS="$EXPAT_LIBS -lexpat" 26 | expat_found=yes ], 27 | [ expat_found=no ], 28 | "$EXPAT_LIBS") 29 | if test $expat_found = no; then 30 | AC_MSG_ERROR([Could not find the Expat library]) 31 | fi 32 | expat_save_CFLAGS="$CFLAGS" 33 | CFLAGS="$CFLAGS $EXPAT_CFLAGS" 34 | AC_CHECK_HEADERS(expat.h, , expat_found=no) 35 | if test $expat_found = no; then 36 | AC_MSG_ERROR([Could not find expat.h]) 37 | fi 38 | CFLAGS="$expat_save_CFLAGS" 39 | fi 40 | 41 | AC_SUBST(EXPAT_CFLAGS) 42 | AC_SUBST(EXPAT_LIBS) 43 | ]) 44 | -------------------------------------------------------------------------------- /src/XML/include/FMI2/fmi2_xml_capabilities.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 . 14 | */ 15 | 16 | #ifndef FMI2_XML_CAPABILITIES_H 17 | #define FMI2_XML_CAPABILITIES_H 18 | 19 | #ifdef __cplusplus 20 | extern "C" { 21 | #endif 22 | 23 | #include "FMI2/fmi2_xml_model_description.h" 24 | /** 25 | \file fmi2_xml_capabilities.h 26 | Functions to retrieve capability flags. 27 | */ 28 | /** 29 | \addtogroup fmi2_xml 30 | @{ 31 | \addtogroup fmi2_xml_capabilities Functions to retrieve capability flags. 32 | The functions accept a pointer to ::fmi2_xml_capabilities_t returned by fmi2_xml_get_capabilities(). 33 | They return the flags as specified by the FMI 2.0 standard. Default values are returned for model-exachange FMUs. 34 | @} 35 | \addtogroup fmi2_xml_capabilities 36 | @{ 37 | */ 38 | /** \brief Retrieve canHandleVariableCommunicationStepSize flag. */ 39 | 40 | unsigned int fmi2_xml_get_capability(fmi2_xml_model_description_t* , fmi2_capabilities_enu_t id); 41 | 42 | 43 | /** 44 | @} 45 | */ 46 | 47 | #ifdef __cplusplus 48 | } 49 | #endif 50 | #endif /* FMI2_XML_CAPABILITIES_H */ 51 | -------------------------------------------------------------------------------- /ThirdParty/Expat/expat-2.1.0/xmlwf/codepage.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd 2 | See the file COPYING for copying permission. 3 | */ 4 | 5 | #include "codepage.h" 6 | 7 | #if (defined(WIN32) || (defined(__WATCOMC__) && defined(__NT__))) 8 | #define STRICT 1 9 | #define WIN32_LEAN_AND_MEAN 1 10 | 11 | #include 12 | 13 | int 14 | codepageMap(int cp, int *map) 15 | { 16 | int i; 17 | CPINFO info; 18 | if (!GetCPInfo(cp, &info) || info.MaxCharSize > 2) 19 | return 0; 20 | for (i = 0; i < 256; i++) 21 | map[i] = -1; 22 | if (info.MaxCharSize > 1) { 23 | for (i = 0; i < MAX_LEADBYTES; i+=2) { 24 | int j, lim; 25 | if (info.LeadByte[i] == 0 && info.LeadByte[i + 1] == 0) 26 | break; 27 | lim = info.LeadByte[i + 1]; 28 | for (j = info.LeadByte[i]; j <= lim; j++) 29 | map[j] = -2; 30 | } 31 | } 32 | for (i = 0; i < 256; i++) { 33 | if (map[i] == -1) { 34 | char c = (char)i; 35 | unsigned short n; 36 | if (MultiByteToWideChar(cp, MB_PRECOMPOSED|MB_ERR_INVALID_CHARS, 37 | &c, 1, &n, 1) == 1) 38 | map[i] = n; 39 | } 40 | } 41 | return 1; 42 | } 43 | 44 | int 45 | codepageConvert(int cp, const char *p) 46 | { 47 | unsigned short c; 48 | if (MultiByteToWideChar(cp, MB_PRECOMPOSED|MB_ERR_INVALID_CHARS, 49 | p, 2, &c, 1) == 1) 50 | return c; 51 | return -1; 52 | } 53 | 54 | #else /* not WIN32 */ 55 | 56 | int 57 | codepageMap(int cp, int *map) 58 | { 59 | return 0; 60 | } 61 | 62 | int 63 | codepageConvert(int cp, const char *p) 64 | { 65 | return -1; 66 | } 67 | 68 | #endif /* not WIN32 */ 69 | -------------------------------------------------------------------------------- /Config.cmake/fmizip.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2012 Modelon AB 2 | 3 | # This program is free software: you can redistribute it and/or modify 4 | # it under the terms of the BSD style license. 5 | 6 | # # This program is distributed in the hope that it will be useful, 7 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 9 | # FMILIB_License.txt file for more details. 10 | 11 | # You should have received a copy of the FMILIB_License.txt file 12 | # along with this program. If not, contact Modelon AB . 13 | 14 | if(NOT FMIZIPDIR) 15 | set(FMIZIPDIR ${FMILIBRARYHOME}/src/ZIP) 16 | 17 | include(jmutil) 18 | 19 | # set(DOXYFILE_EXTRA_SOURCES "${DOXYFILE_EXTRA_SOURCES} \"${FMIZIPDIR}/include\"") 20 | 21 | set(FMIZIP_LIBRARIES fmizip) 22 | 23 | add_subdirectory(Config.cmake/Minizip) 24 | 25 | include_directories("${FMIZIPDIR}/include" "${FMILIB_THIRDPARTYLIBS}/Minizip/minizip" "${FMILIB_THIRDPARTYLIBS}/FMI" "${FMILIB_THIRDPARTYLIBS}/Zlib/zlib-1.2.6" "${FMILibrary_BINARY_DIR}/zlib") 26 | 27 | set(FMIZIPSOURCE 28 | ${FMIZIPDIR}/src/fmi_zip_unzip.c 29 | ${FMIZIPDIR}/src/fmi_zip_zip.c 30 | ) 31 | 32 | set(FMIZIPHEADERS 33 | # src/fmi_zip_unzip_impl.h 34 | ${FMIZIPDIR}/include/FMI/fmi_zip_unzip.h 35 | ${FMIZIPDIR}/include/FMI/fmi_zip_zip.h 36 | ) 37 | 38 | #include_directories("${FMILIB_THIRDPARTYLIBS}/zlib/lib/VS2005/win32") 39 | 40 | SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DZLIB_STATIC") 41 | 42 | add_library(fmizip ${FMILIBKIND} ${FMIZIPSOURCE} ${FMIZIPHEADERS}) 43 | 44 | target_link_libraries(fmizip minizip jmutils) 45 | 46 | endif(NOT FMIZIPDIR) 47 | -------------------------------------------------------------------------------- /src/Import/include/FMI/fmi_import_options.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2022 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 . 14 | */ 15 | 16 | #ifndef FMI_IMPORT_OPTIONS_H 17 | #define FMI_IMPORT_OPTIONS_H 18 | 19 | #include "fmilib_config.h" 20 | 21 | #include "JM/jm_portability.h" 22 | 23 | #ifdef __cplusplus 24 | extern "C" { 25 | #endif 26 | 27 | /** 28 | * \brief FMI Library options object. 29 | */ 30 | typedef struct fmi_util_options_t fmi_import_options_t; 31 | 32 | /** 33 | * \brief Sets the flag for the platform dependent function that loads the shared library. 34 | * 35 | * See the platform dependent function ('dlopen' or 'LoadLibraryEx') for valid values. 36 | * 37 | * An example value for 'dlopen' would be RTLD_NOW|RTLD_LOCAL|RTLD_DEEPBIND, granted the 38 | * system supports the 'RTLD_DEEPBIND' flag. 39 | * 40 | * \param fmu - an fmu object as returned by fmi2_import_parse_xml(). 41 | * \return fmi_import_options_t:: opaque object pointer 42 | */ 43 | FMILIB_EXPORT void fmi_import_set_option_loadlibrary_flag(fmi_import_options_t* options, jm_portability_loadlibrary_flag_t flag); 44 | 45 | 46 | #ifdef __cplusplus 47 | } 48 | #endif 49 | 50 | #endif /* FMI_IMPORT_OPTIONS_H */ 51 | --------------------------------------------------------------------------------