pythonfmu3 0.2.2.2__py3-none-any.whl → 0.2.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pythonfmu3/__init__.py +8 -8
- pythonfmu3/__main__.py +52 -52
- pythonfmu3/_version.py +1 -1
- pythonfmu3/builder.py +260 -260
- pythonfmu3/default_experiment.py +7 -7
- pythonfmu3/deploy.py +118 -118
- pythonfmu3/enums.py +48 -48
- pythonfmu3/fmi3slave.py +438 -438
- pythonfmu3/logmsg.py +14 -14
- pythonfmu3/osutil.py +22 -22
- pythonfmu3/pythonfmu-export/.clang-format +35 -35
- pythonfmu3/pythonfmu-export/CMakeLists.txt +59 -59
- pythonfmu3/pythonfmu-export/build_unix.sh +4 -4
- pythonfmu3/pythonfmu-export/build_win.sh +4 -4
- pythonfmu3/pythonfmu-export/src/CMakeLists.txt +45 -45
- pythonfmu3/pythonfmu-export/src/cppfmu/cppfmu_common.hpp +161 -161
- pythonfmu3/pythonfmu-export/src/cppfmu/cppfmu_cs.cpp +192 -192
- pythonfmu3/pythonfmu-export/src/cppfmu/cppfmu_cs.hpp +185 -185
- pythonfmu3/pythonfmu-export/src/cppfmu/fmi_functions.cpp +937 -937
- pythonfmu3/pythonfmu-export/src/fmi/fmi3FunctionTypes.h +638 -638
- pythonfmu3/pythonfmu-export/src/fmi/fmi3Functions.h +343 -343
- pythonfmu3/pythonfmu-export/src/fmi/fmi3PlatformTypes.h +94 -94
- pythonfmu3/pythonfmu-export/src/pythonfmu/IPyState.hpp +17 -17
- pythonfmu3/pythonfmu-export/src/pythonfmu/PySlaveInstance.cpp +744 -744
- pythonfmu3/pythonfmu-export/src/pythonfmu/PySlaveInstance.hpp +111 -111
- pythonfmu3/pythonfmu-export/src/pythonfmu/PyState.hpp +84 -84
- pythonfmu3/resources/binaries/x86_64-linux/libpythonfmu-export.so +0 -0
- pythonfmu3/resources/binaries/x86_64-windows/pythonfmu-export.dll +0 -0
- pythonfmu3/tests/conftest.py +5 -5
- pythonfmu3/tests/data/csvdemo.csv +7 -7
- pythonfmu3/tests/slaves/PythonSlaveWithException.py +18 -18
- pythonfmu3/tests/slaves/localmodule.py +8 -8
- pythonfmu3/tests/slaves/pythonslave.py +52 -52
- pythonfmu3/tests/slaves/pythonslave_read_file.py +23 -23
- pythonfmu3/tests/slaves/slavewithdep.py +21 -21
- pythonfmu3/tests/test_builder.py +195 -195
- pythonfmu3/tests/test_deploy.py +48 -48
- pythonfmu3/tests/test_fmi3slave.py +152 -152
- pythonfmu3/tests/test_integration.py +350 -350
- pythonfmu3/tests/test_logger.py +180 -180
- pythonfmu3/tests/test_multiple_fmus.py +141 -141
- pythonfmu3/tests/test_variables.py +334 -334
- pythonfmu3/tests/utils.py +13 -13
- pythonfmu3/unit.py +62 -62
- pythonfmu3/variable_types.py +101 -101
- pythonfmu3/variables.py +400 -400
- {pythonfmu3-0.2.2.2.dist-info → pythonfmu3-0.2.3.dist-info}/METADATA +7 -9
- pythonfmu3-0.2.3.dist-info/RECORD +54 -0
- {pythonfmu3-0.2.2.2.dist-info → pythonfmu3-0.2.3.dist-info}/WHEEL +1 -1
- {pythonfmu3-0.2.2.2.dist-info → pythonfmu3-0.2.3.dist-info}/entry_points.txt +0 -1
- pythonfmu3-0.2.2.2.dist-info/LICENSE.txt → pythonfmu3-0.2.3.dist-info/licenses/LICENSE +23 -23
- pythonfmu3/pythonfmu-export/build/ALL_BUILD.vcxproj +0 -184
- pythonfmu3/pythonfmu-export/build/ALL_BUILD.vcxproj.filters +0 -8
- pythonfmu3/pythonfmu-export/build/CMakeCache.txt +0 -369
- pythonfmu3/pythonfmu-export/build/CMakeFiles/0ee4db0675778dfba98c7160896d5a45/generate.stamp.rule +0 -1
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CMakeCCompiler.cmake +0 -72
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CMakeCXXCompiler.cmake +0 -83
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CMakeDetermineCompilerABI_C.bin +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CMakeDetermineCompilerABI_CXX.bin +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CMakeRCCompiler.cmake +0 -6
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CMakeSystem.cmake +0 -15
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdC/CMakeCCompilerId.c +0 -838
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdC/CompilerIdC.exe +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdC/CompilerIdC.vcxproj +0 -71
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdC/Debug/CMakeCCompilerId.obj +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdC/Debug/CompilerIdC.exe.recipe +0 -11
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdC/Debug/CompilerIdC.tlog/CL.command.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdC/Debug/CompilerIdC.tlog/CL.read.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdC/Debug/CompilerIdC.tlog/CL.write.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdC/Debug/CompilerIdC.tlog/CompilerIdC.lastbuildstate +0 -2
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdC/Debug/CompilerIdC.tlog/link.command.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdC/Debug/CompilerIdC.tlog/link.read.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdC/Debug/CompilerIdC.tlog/link.write.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdCXX/CMakeCXXCompilerId.cpp +0 -826
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdCXX/CompilerIdCXX.exe +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdCXX/CompilerIdCXX.vcxproj +0 -71
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdCXX/Debug/CMakeCXXCompilerId.obj +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdCXX/Debug/CompilerIdCXX.exe.recipe +0 -11
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdCXX/Debug/CompilerIdCXX.tlog/CL.command.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdCXX/Debug/CompilerIdCXX.tlog/CL.read.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdCXX/Debug/CompilerIdCXX.tlog/CL.write.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdCXX/Debug/CompilerIdCXX.tlog/CompilerIdCXX.lastbuildstate +0 -2
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdCXX/Debug/CompilerIdCXX.tlog/link.command.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdCXX/Debug/CompilerIdCXX.tlog/link.read.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdCXX/Debug/CompilerIdCXX.tlog/link.write.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/VCTargetsPath.txt +0 -1
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/VCTargetsPath.vcxproj +0 -31
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/x64/Debug/VCTargetsPath.recipe +0 -11
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/x64/Debug/VCTargetsPath.tlog/VCTargetsPath.lastbuildstate +0 -2
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CMakeCCompiler.cmake +0 -81
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CMakeCXXCompiler.cmake +0 -101
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CMakeDetermineCompilerABI_C.bin +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CMakeDetermineCompilerABI_CXX.bin +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CMakeRCCompiler.cmake +0 -6
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CMakeSystem.cmake +0 -15
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdC/CMakeCCompilerId.c +0 -904
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdC/CompilerIdC.exe +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdC/CompilerIdC.vcxproj +0 -72
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdC/Debug/CMakeCCompilerId.obj +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdC/Debug/CompilerIdC.exe.recipe +0 -11
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdC/Debug/CompilerIdC.tlog/CL.command.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdC/Debug/CompilerIdC.tlog/CL.read.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdC/Debug/CompilerIdC.tlog/CL.write.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdC/Debug/CompilerIdC.tlog/CompilerIdC.lastbuildstate +0 -2
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdC/Debug/CompilerIdC.tlog/link.command.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdC/Debug/CompilerIdC.tlog/link.read.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdC/Debug/CompilerIdC.tlog/link.write.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdCXX/CMakeCXXCompilerId.cpp +0 -919
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdCXX/CompilerIdCXX.exe +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdCXX/CompilerIdCXX.vcxproj +0 -72
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdCXX/Debug/CMakeCXXCompilerId.obj +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdCXX/Debug/CompilerIdCXX.exe.recipe +0 -11
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdCXX/Debug/CompilerIdCXX.tlog/CL.command.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdCXX/Debug/CompilerIdCXX.tlog/CL.read.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdCXX/Debug/CompilerIdCXX.tlog/CL.write.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdCXX/Debug/CompilerIdCXX.tlog/CompilerIdCXX.lastbuildstate +0 -2
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdCXX/Debug/CompilerIdCXX.tlog/link.command.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdCXX/Debug/CompilerIdCXX.tlog/link.read.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdCXX/Debug/CompilerIdCXX.tlog/link.write.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/VCTargetsPath.txt +0 -1
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/VCTargetsPath.vcxproj +0 -31
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/x64/Debug/VCTargetsPath.recipe +0 -11
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/x64/Debug/VCTargetsPath.tlog/VCTargetsPath.lastbuildstate +0 -2
- pythonfmu3/pythonfmu-export/build/CMakeFiles/CMakeConfigureLog.yaml +0 -568
- pythonfmu3/pythonfmu-export/build/CMakeFiles/CMakeOutput.log +0 -357
- pythonfmu3/pythonfmu-export/build/CMakeFiles/TargetDirectories.txt +0 -3
- pythonfmu3/pythonfmu-export/build/CMakeFiles/cmake.check_cache +0 -1
- pythonfmu3/pythonfmu-export/build/CMakeFiles/generate.stamp +0 -1
- pythonfmu3/pythonfmu-export/build/CMakeFiles/generate.stamp.depend +0 -28
- pythonfmu3/pythonfmu-export/build/CMakeFiles/generate.stamp.list +0 -2
- pythonfmu3/pythonfmu-export/build/ZERO_CHECK.vcxproj +0 -174
- pythonfmu3/pythonfmu-export/build/ZERO_CHECK.vcxproj.filters +0 -13
- pythonfmu3/pythonfmu-export/build/cmake_install.cmake +0 -50
- pythonfmu3/pythonfmu-export/build/install_manifest.txt +0 -0
- pythonfmu3/pythonfmu-export/build/pythonfmu-export.sln +0 -53
- pythonfmu3/pythonfmu-export/build/src/CMakeFiles/generate.stamp +0 -1
- pythonfmu3/pythonfmu-export/build/src/CMakeFiles/generate.stamp.depend +0 -2
- pythonfmu3/pythonfmu-export/build/src/Debug/pythonfmu-export.pdb +0 -0
- pythonfmu3/pythonfmu-export/build/src/Release/pythonfmu-export.exp +0 -0
- pythonfmu3/pythonfmu-export/build/src/Release/pythonfmu-export.lib +0 -0
- pythonfmu3/pythonfmu-export/build/src/cmake_install.cmake +0 -34
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/PySlaveInstance.obj +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/cppfmu_cs.obj +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/exports.def +0 -1885
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/fmi_functions.obj +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/objects.txt +0 -3
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/CL.command.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/CL.read.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/CL.write.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/CustomBuild.command.1.tlog +0 -10
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/CustomBuild.read.1.tlog +0 -1
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/CustomBuild.write.1.tlog +0 -2
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/link.command.1.tlog +0 -1
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/link.read.1.tlog +0 -1
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/link.read.3.tlog +0 -1
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/link.write.1.tlog +0 -1
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/pythonfmu-export.lastbuildstate +0 -2
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/unsuccessfulbuild +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/vc142.pdb +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/MinSizeRel/objects.txt +0 -3
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/RelWithDebInfo/objects.txt +0 -3
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/PySlaveInstance.obj +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/cppfmu_cs.obj +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/exports.def +0 -538
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/fmi_functions.obj +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/objects.txt +0 -3
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/pythonfmu-export.dll.recipe +0 -14
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/pythonfmu-export.tlog/CL.command.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/pythonfmu-export.tlog/CL.read.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/pythonfmu-export.tlog/CL.write.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/pythonfmu-export.tlog/CustomBuild.command.1.tlog +0 -10
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/pythonfmu-export.tlog/CustomBuild.read.1.tlog +0 -1
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/pythonfmu-export.tlog/CustomBuild.write.1.tlog +0 -2
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/pythonfmu-export.tlog/link.command.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/pythonfmu-export.tlog/link.delete.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/pythonfmu-export.tlog/link.read.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/pythonfmu-export.tlog/link.write.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/pythonfmu-export.tlog/pythonfmu-export.lastbuildstate +0 -2
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/pythonfmu-export.tlog/pythonfmu-export.write.1u.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.vcxproj +0 -414
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.vcxproj.filters +0 -48
- pythonfmu3/pythonfmu-export/build/x64/Debug/ZERO_CHECK/ZERO_CHECK.recipe +0 -11
- pythonfmu3/pythonfmu-export/build/x64/Debug/ZERO_CHECK/ZERO_CHECK.tlog/CustomBuild.command.1.tlog +0 -10
- pythonfmu3/pythonfmu-export/build/x64/Debug/ZERO_CHECK/ZERO_CHECK.tlog/CustomBuild.read.1.tlog +0 -29
- pythonfmu3/pythonfmu-export/build/x64/Debug/ZERO_CHECK/ZERO_CHECK.tlog/CustomBuild.write.1.tlog +0 -3
- pythonfmu3/pythonfmu-export/build/x64/Debug/ZERO_CHECK/ZERO_CHECK.tlog/ZERO_CHECK.lastbuildstate +0 -2
- pythonfmu3/pythonfmu-export/build/x64/Release/ALL_BUILD/ALL_BUILD.recipe +0 -17
- pythonfmu3/pythonfmu-export/build/x64/Release/ALL_BUILD/ALL_BUILD.tlog/ALL_BUILD.lastbuildstate +0 -2
- pythonfmu3/pythonfmu-export/build/x64/Release/ALL_BUILD/ALL_BUILD.tlog/CustomBuild.command.1.tlog +0 -10
- pythonfmu3/pythonfmu-export/build/x64/Release/ALL_BUILD/ALL_BUILD.tlog/CustomBuild.read.1.tlog +0 -27
- pythonfmu3/pythonfmu-export/build/x64/Release/ALL_BUILD/ALL_BUILD.tlog/CustomBuild.write.1.tlog +0 -2
- pythonfmu3/pythonfmu-export/build/x64/Release/ZERO_CHECK/ZERO_CHECK.recipe +0 -11
- pythonfmu3/pythonfmu-export/build/x64/Release/ZERO_CHECK/ZERO_CHECK.tlog/CustomBuild.command.1.tlog +0 -10
- pythonfmu3/pythonfmu-export/build/x64/Release/ZERO_CHECK/ZERO_CHECK.tlog/CustomBuild.read.1.tlog +0 -29
- pythonfmu3/pythonfmu-export/build/x64/Release/ZERO_CHECK/ZERO_CHECK.tlog/CustomBuild.write.1.tlog +0 -3
- pythonfmu3/pythonfmu-export/build/x64/Release/ZERO_CHECK/ZERO_CHECK.tlog/ZERO_CHECK.lastbuildstate +0 -2
- pythonfmu3/resources/binaries/x86_64-windows1/pythonfmu-export.dll +0 -0
- pythonfmu3-0.2.2.2.dist-info/RECORD +0 -200
- {pythonfmu3-0.2.2.2.dist-info → pythonfmu3-0.2.3.dist-info}/top_level.txt +0 -0
|
@@ -1,161 +1,161 @@
|
|
|
1
|
-
/* Copyright 2016-2019, SINTEF Ocean.
|
|
2
|
-
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
3
|
-
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
4
|
-
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
5
|
-
*/
|
|
6
|
-
#ifndef CPPFMU_COMMON_HPP
|
|
7
|
-
#define CPPFMU_COMMON_HPP
|
|
8
|
-
|
|
9
|
-
#include <algorithm> // std::find()
|
|
10
|
-
#include <cstddef> // std::size_t
|
|
11
|
-
#include <functional> // std::function
|
|
12
|
-
#include <memory> // std::shared_ptr, std::unique_ptr
|
|
13
|
-
#include <new> // std::bad_alloc
|
|
14
|
-
#include <stdexcept> // std::runtime_error
|
|
15
|
-
#include <string> // std::basic_string, std::char_traits
|
|
16
|
-
#include <utility> // std::forward
|
|
17
|
-
#include <vector>
|
|
18
|
-
|
|
19
|
-
extern "C"
|
|
20
|
-
{
|
|
21
|
-
#include "fmi/fmi3Functions.h"
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
// CPPFMU_NOEXCEPT evaluates to 'noexcept' on compilers that support it.
|
|
26
|
-
#if (__cplusplus >= 201103L) || (defined(_MSC_VER) && _MSC_VER >= 1900)
|
|
27
|
-
# define CPPFMU_NOEXCEPT noexcept
|
|
28
|
-
#else
|
|
29
|
-
# define CPPFMU_NOEXCEPT
|
|
30
|
-
#endif
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
namespace cppfmu
|
|
34
|
-
{
|
|
35
|
-
|
|
36
|
-
// Aliases for FMI types and enums
|
|
37
|
-
typedef fmi3Float64 FMIFloat64;
|
|
38
|
-
typedef fmi3Int32 FMIInt32;
|
|
39
|
-
typedef fmi3Int64 FMIInt64;
|
|
40
|
-
typedef fmi3UInt64 FMIUInt64;
|
|
41
|
-
typedef fmi3Boolean FMIBoolean;
|
|
42
|
-
typedef fmi3String FMIString;
|
|
43
|
-
typedef fmi3LogMessageCallback FMICallbackLogger;
|
|
44
|
-
typedef fmi3Instance FMIComponent;
|
|
45
|
-
typedef fmi3InstanceEnvironment FMIComponentEnvironment;
|
|
46
|
-
typedef fmi3Status FMIStatus;
|
|
47
|
-
typedef fmi3ValueReference FMIValueReference;
|
|
48
|
-
|
|
49
|
-
const FMIBoolean FMIFalse = fmi3False;
|
|
50
|
-
const FMIBoolean FMITrue = fmi3True;
|
|
51
|
-
|
|
52
|
-
const FMIStatus FMIOK = fmi3OK;
|
|
53
|
-
const FMIStatus FMIWarning = fmi3Warning;
|
|
54
|
-
const FMIStatus FMIDiscard = fmi3Discard;
|
|
55
|
-
const FMIStatus FMIError = fmi3Error;
|
|
56
|
-
const FMIStatus FMIFatal = fmi3Fatal;
|
|
57
|
-
|
|
58
|
-
using String = std::string;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
// ============================================================================
|
|
62
|
-
// ERROR HANDLING
|
|
63
|
-
// ============================================================================
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
/* Exception class that signals "fatal error", i.e. an error which means that
|
|
67
|
-
* not only is the current model instance invalid, but all other instances of
|
|
68
|
-
* the same model too.
|
|
69
|
-
*/
|
|
70
|
-
class FatalError : public std::runtime_error
|
|
71
|
-
{
|
|
72
|
-
public:
|
|
73
|
-
FatalError(const char* msg) CPPFMU_NOEXCEPT : std::runtime_error{msg} { }
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
// ============================================================================
|
|
78
|
-
// LOGGING
|
|
79
|
-
// ============================================================================
|
|
80
|
-
|
|
81
|
-
namespace detail
|
|
82
|
-
{
|
|
83
|
-
template<typename Container, typename Item>
|
|
84
|
-
bool CanFind(const Container& container, const Item& item)
|
|
85
|
-
{
|
|
86
|
-
return container.end() != std::find(
|
|
87
|
-
container.begin(),
|
|
88
|
-
container.end(),
|
|
89
|
-
item);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
/* A class that can be used to log messages from model code. All messages are
|
|
95
|
-
* forwarded to the logging facilities provided by the simulation environment.
|
|
96
|
-
*/
|
|
97
|
-
class Logger
|
|
98
|
-
{
|
|
99
|
-
public:
|
|
100
|
-
struct Settings
|
|
101
|
-
{
|
|
102
|
-
bool debugLoggingEnabled = false;
|
|
103
|
-
std::vector<String> loggedCategories;
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
Logger(
|
|
107
|
-
FMIComponentEnvironment component,
|
|
108
|
-
fmi3LogMessageCallback logCallback,
|
|
109
|
-
std::shared_ptr<Settings> settings)
|
|
110
|
-
: m_component{component}
|
|
111
|
-
, m_fmiLogger{logCallback}
|
|
112
|
-
, m_settings{settings}
|
|
113
|
-
{
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
// Logs a message.
|
|
117
|
-
template<typename... Args>
|
|
118
|
-
void Log(
|
|
119
|
-
FMIStatus status,
|
|
120
|
-
FMIString category,
|
|
121
|
-
FMIString message,
|
|
122
|
-
Args&&... args) CPPFMU_NOEXCEPT
|
|
123
|
-
{
|
|
124
|
-
if (m_settings->loggedCategories.empty() ||
|
|
125
|
-
detail::CanFind(m_settings->loggedCategories, category)) {
|
|
126
|
-
m_fmiLogger(
|
|
127
|
-
m_component,
|
|
128
|
-
status,
|
|
129
|
-
category,
|
|
130
|
-
message);
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
/* Logs a debug message (if debug logging is enabled by the simulation
|
|
135
|
-
* environment).
|
|
136
|
-
*/
|
|
137
|
-
template<typename... Args>
|
|
138
|
-
void DebugLog(
|
|
139
|
-
FMIStatus status,
|
|
140
|
-
FMIString category,
|
|
141
|
-
FMIString message,
|
|
142
|
-
Args&&... args) CPPFMU_NOEXCEPT
|
|
143
|
-
{
|
|
144
|
-
if (m_settings->debugLoggingEnabled) {
|
|
145
|
-
Log(
|
|
146
|
-
status,
|
|
147
|
-
category,
|
|
148
|
-
message,
|
|
149
|
-
std::forward<Args>(args)...);
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
private:
|
|
154
|
-
const FMIComponentEnvironment m_component;
|
|
155
|
-
const FMICallbackLogger m_fmiLogger;
|
|
156
|
-
std::shared_ptr<Settings> m_settings;
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
} // namespace cppfmu
|
|
161
|
-
#endif // header guard
|
|
1
|
+
/* Copyright 2016-2019, SINTEF Ocean.
|
|
2
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
3
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
4
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
5
|
+
*/
|
|
6
|
+
#ifndef CPPFMU_COMMON_HPP
|
|
7
|
+
#define CPPFMU_COMMON_HPP
|
|
8
|
+
|
|
9
|
+
#include <algorithm> // std::find()
|
|
10
|
+
#include <cstddef> // std::size_t
|
|
11
|
+
#include <functional> // std::function
|
|
12
|
+
#include <memory> // std::shared_ptr, std::unique_ptr
|
|
13
|
+
#include <new> // std::bad_alloc
|
|
14
|
+
#include <stdexcept> // std::runtime_error
|
|
15
|
+
#include <string> // std::basic_string, std::char_traits
|
|
16
|
+
#include <utility> // std::forward
|
|
17
|
+
#include <vector>
|
|
18
|
+
|
|
19
|
+
extern "C"
|
|
20
|
+
{
|
|
21
|
+
#include "fmi/fmi3Functions.h"
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
// CPPFMU_NOEXCEPT evaluates to 'noexcept' on compilers that support it.
|
|
26
|
+
#if (__cplusplus >= 201103L) || (defined(_MSC_VER) && _MSC_VER >= 1900)
|
|
27
|
+
# define CPPFMU_NOEXCEPT noexcept
|
|
28
|
+
#else
|
|
29
|
+
# define CPPFMU_NOEXCEPT
|
|
30
|
+
#endif
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
namespace cppfmu
|
|
34
|
+
{
|
|
35
|
+
|
|
36
|
+
// Aliases for FMI types and enums
|
|
37
|
+
typedef fmi3Float64 FMIFloat64;
|
|
38
|
+
typedef fmi3Int32 FMIInt32;
|
|
39
|
+
typedef fmi3Int64 FMIInt64;
|
|
40
|
+
typedef fmi3UInt64 FMIUInt64;
|
|
41
|
+
typedef fmi3Boolean FMIBoolean;
|
|
42
|
+
typedef fmi3String FMIString;
|
|
43
|
+
typedef fmi3LogMessageCallback FMICallbackLogger;
|
|
44
|
+
typedef fmi3Instance FMIComponent;
|
|
45
|
+
typedef fmi3InstanceEnvironment FMIComponentEnvironment;
|
|
46
|
+
typedef fmi3Status FMIStatus;
|
|
47
|
+
typedef fmi3ValueReference FMIValueReference;
|
|
48
|
+
|
|
49
|
+
const FMIBoolean FMIFalse = fmi3False;
|
|
50
|
+
const FMIBoolean FMITrue = fmi3True;
|
|
51
|
+
|
|
52
|
+
const FMIStatus FMIOK = fmi3OK;
|
|
53
|
+
const FMIStatus FMIWarning = fmi3Warning;
|
|
54
|
+
const FMIStatus FMIDiscard = fmi3Discard;
|
|
55
|
+
const FMIStatus FMIError = fmi3Error;
|
|
56
|
+
const FMIStatus FMIFatal = fmi3Fatal;
|
|
57
|
+
|
|
58
|
+
using String = std::string;
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
// ============================================================================
|
|
62
|
+
// ERROR HANDLING
|
|
63
|
+
// ============================================================================
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
/* Exception class that signals "fatal error", i.e. an error which means that
|
|
67
|
+
* not only is the current model instance invalid, but all other instances of
|
|
68
|
+
* the same model too.
|
|
69
|
+
*/
|
|
70
|
+
class FatalError : public std::runtime_error
|
|
71
|
+
{
|
|
72
|
+
public:
|
|
73
|
+
FatalError(const char* msg) CPPFMU_NOEXCEPT : std::runtime_error{msg} { }
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
// ============================================================================
|
|
78
|
+
// LOGGING
|
|
79
|
+
// ============================================================================
|
|
80
|
+
|
|
81
|
+
namespace detail
|
|
82
|
+
{
|
|
83
|
+
template<typename Container, typename Item>
|
|
84
|
+
bool CanFind(const Container& container, const Item& item)
|
|
85
|
+
{
|
|
86
|
+
return container.end() != std::find(
|
|
87
|
+
container.begin(),
|
|
88
|
+
container.end(),
|
|
89
|
+
item);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
/* A class that can be used to log messages from model code. All messages are
|
|
95
|
+
* forwarded to the logging facilities provided by the simulation environment.
|
|
96
|
+
*/
|
|
97
|
+
class Logger
|
|
98
|
+
{
|
|
99
|
+
public:
|
|
100
|
+
struct Settings
|
|
101
|
+
{
|
|
102
|
+
bool debugLoggingEnabled = false;
|
|
103
|
+
std::vector<String> loggedCategories;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
Logger(
|
|
107
|
+
FMIComponentEnvironment component,
|
|
108
|
+
fmi3LogMessageCallback logCallback,
|
|
109
|
+
std::shared_ptr<Settings> settings)
|
|
110
|
+
: m_component{component}
|
|
111
|
+
, m_fmiLogger{logCallback}
|
|
112
|
+
, m_settings{settings}
|
|
113
|
+
{
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// Logs a message.
|
|
117
|
+
template<typename... Args>
|
|
118
|
+
void Log(
|
|
119
|
+
FMIStatus status,
|
|
120
|
+
FMIString category,
|
|
121
|
+
FMIString message,
|
|
122
|
+
Args&&... args) CPPFMU_NOEXCEPT
|
|
123
|
+
{
|
|
124
|
+
if (m_settings->loggedCategories.empty() ||
|
|
125
|
+
detail::CanFind(m_settings->loggedCategories, category)) {
|
|
126
|
+
m_fmiLogger(
|
|
127
|
+
m_component,
|
|
128
|
+
status,
|
|
129
|
+
category,
|
|
130
|
+
message);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/* Logs a debug message (if debug logging is enabled by the simulation
|
|
135
|
+
* environment).
|
|
136
|
+
*/
|
|
137
|
+
template<typename... Args>
|
|
138
|
+
void DebugLog(
|
|
139
|
+
FMIStatus status,
|
|
140
|
+
FMIString category,
|
|
141
|
+
FMIString message,
|
|
142
|
+
Args&&... args) CPPFMU_NOEXCEPT
|
|
143
|
+
{
|
|
144
|
+
if (m_settings->debugLoggingEnabled) {
|
|
145
|
+
Log(
|
|
146
|
+
status,
|
|
147
|
+
category,
|
|
148
|
+
message,
|
|
149
|
+
std::forward<Args>(args)...);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
private:
|
|
154
|
+
const FMIComponentEnvironment m_component;
|
|
155
|
+
const FMICallbackLogger m_fmiLogger;
|
|
156
|
+
std::shared_ptr<Settings> m_settings;
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
} // namespace cppfmu
|
|
161
|
+
#endif // header guard
|