Linux GNU 11.4.0 Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 57.1% 8 / 0 / 14
Functions: 46.2% 6 / 1 / 14
Branches: -% 0 / 0 / 0

OMCompiler/Compiler/Util/Settings.mo
Line Branch Exec Source
1 /*
2 * This file is part of OpenModelica.
3 *
4 * Copyright (c) 1998-2026, Open Source Modelica Consortium (OSMC),
5 * c/o Linköpings universitet, Department of Computer and Information Science,
6 * SE-58183 Linköping, Sweden.
7 *
8 * All rights reserved.
9 *
10 * THIS PROGRAM IS PROVIDED UNDER THE TERMS OF AGPL VERSION 3 LICENSE OR
11 * THIS OSMC PUBLIC LICENSE (OSMC-PL) VERSION 1.8.
12 * ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS PROGRAM CONSTITUTES
13 * RECIPIENT'S ACCEPTANCE OF THE OSMC PUBLIC LICENSE OR THE GNU AGPL
14 * VERSION 3, ACCORDING TO RECIPIENTS CHOICE.
15 *
16 * The OpenModelica software and the OSMC (Open Source Modelica Consortium)
17 * Public License (OSMC-PL) are obtained from OSMC, either from the above
18 * address, from the URLs:
19 * http://www.openmodelica.org or
20 * https://github.com/OpenModelica/ or
21 * http://www.ida.liu.se/projects/OpenModelica,
22 * and in the OpenModelica distribution.
23 *
24 * GNU AGPL version 3 is obtained from:
25 * https://www.gnu.org/licenses/licenses.html#GPL
26 *
27 * This program is distributed WITHOUT ANY WARRANTY; without
28 * even the implied warranty of MERCHANTABILITY or FITNESS
29 * FOR A PARTICULAR PURPOSE, EXCEPT AS EXPRESSLY SET FORTH
30 * IN THE BY RECIPIENT SELECTED SUBSIDIARY LICENSE CONDITIONS OF OSMC-PL.
31 *
32 * See the full OSMC Public License conditions for more details.
33 *
34 */
35
36 encapsulated package Settings
37 " file: Settings.mo
38 package: Settings
39 description: This file contains settings for omc which are implemented in C.
40
41 "
42
43 3768 public function getVersionNr "Returns the version number of this release"
44 output String outString;
45 external "C" outString=Settings_getVersionNr() annotation(Library = "omcruntime");
46 end getVersionNr;
47
48 3768 public function setTempDirectoryPath
49 input String inString;
50
51 external "C" SettingsImpl__setTempDirectoryPath(inString) annotation(Library = "omcruntime");
52 end setTempDirectoryPath;
53
54 ✗ public function getTempDirectoryPath
55 output String outString;
56
57 external "C" outString=Settings_getTempDirectoryPath() annotation(Library = "omcruntime");
58 end getTempDirectoryPath;
59
60 ✗ public function setInstallationDirectoryPath "set it to empty string to clear it"
61 input String inString;
62
63 external "C" SettingsImpl__setInstallationDirectoryPath(inString) annotation(Library = "omcruntime");
64 end setInstallationDirectoryPath;
65
66 62945 public function getInstallationDirectoryPath
67 output String outString;
68 external "C" outString=Settings_getInstallationDirectoryPath() annotation(Library = "omcruntime");
69 end getInstallationDirectoryPath;
70
71 62945 public function setModelicaPath "set it to empty string to clear it"
72 input String inString;
73 external "C" SettingsImpl__setModelicaPath(inString) annotation(Library = "omcruntime");
74 end setModelicaPath;
75
76 1 public function getModelicaPath
77 input Boolean runningTestsuite;
78 output String outString;
79 external "C" outString=Settings_getModelicaPath(runningTestsuite) annotation(Library = "omcruntime");
80 end getModelicaPath;
81
82 8364 public function getHomeDir
83 input Boolean runningTestsuite;
84 output String outString;
85 external "C" outString=Settings_getHomeDir(runningTestsuite) annotation(Library = "omcruntime");
86 end getHomeDir;
87
88 14971 public function getEcho
89 output Integer echo;
90 external "C" echo=Settings_getEcho() annotation(Library = "omcruntime");
91 end getEcho;
92
93 18871 public function setEcho
94 input Integer echo;
95 external "C" Settings_setEcho(echo) annotation(Library = "omcruntime");
96 end setEcho;
97
98 /* TODO: Implement an external C function for bootstrapped omc or remove me. DO NOT SIMPLY REMOVE THIS COMMENT
99 public function dumpSettings
100 external "C" Settings_dumpSettings() annotation(Library = "omcruntime");
101 end dumpSettings;*/
102
103 annotation(__OpenModelica_Interface="util");
104 end Settings;
105