-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathfmi3.pxd
58 lines (51 loc) · 1.74 KB
/
fmi3.pxd
1
2
3
4
5
6
7
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2025 Modelon AB
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Module containing the FMI3 interface Python wrappers.
cimport pyfmi.fmil_import as FMIL
cimport pyfmi.fmil3_import as FMIL3
cimport pyfmi.fmi_base as FMI_BASE
cdef class FMUModelBase3(FMI_BASE.ModelBase):
# FMIL related variables
cdef FMIL.fmi_import_context_t* _context
cdef FMIL3.fmi3_import_t* _fmu
cdef FMIL3.fmi3_fmu_kind_enu_t _fmu_kind
cdef FMIL.fmi_version_enu_t _version
# Internal values
cdef object _fmu_full_path
cdef public object _enable_logging
cdef int _allow_unzipped_fmu
cdef int _allocated_context, _allocated_xml
cdef class FMUModelME3(FMUModelBase3):
pass
cdef void _cleanup_on_load_error(
FMIL3.fmi3_import_t* fmu_3,
FMIL.fmi_import_context_t* context,
int allow_unzipped_fmu,
FMIL.jm_callbacks callbacks,
bytes fmu_temp_dir,
list log_data
)
cdef object _load_fmi3_fmu(
fmu,
object log_file_name,
str kind,
int log_level,
int allow_unzipped_fmu,
FMIL.fmi_import_context_t* context,
bytes fmu_temp_dir,
FMIL.jm_callbacks callbacks,
list log_data
)