Opened 11 years ago
Last modified 8 years ago
#3241 assigned defect
Cpp runtime naming conventions
| Reported by: | Rüdiger Franke | Owned by: | Niklas Worschech |
|---|---|---|---|
| Priority: | high | Milestone: | Future |
| Component: | Cpp Run-time | Version: | trunk |
| Keywords: | Cc: | Niklas Worschech |
Description
Consider
package A package B model M end M; end B; package C model M end M; end C; end A;
translateModel(A.B.M) with +simCodeTarget=Cpp generates files that have A.B.M in their names. The classes inside the files just contain M in their name. This exhibits the risk that A.B.M and A.C.M collide if they shall be linked together, e.g. in a hierarchical FMU.
Is this a bug or a feature?
One might alternatively use underscores instead of dots for class names, like A_B_M. The Cpp FMU code generation currently messes up models with dots in their names. This ticket needs to be clarified, in order to know in which direction to proceed.
Change History (10)
comment:1 by , 11 years ago
comment:3 by , 10 years ago
| Component: | Run-time → Cpp Run-time |
|---|---|
| Owner: | changed from to |
comment:4 by , 10 years ago
| Cc: | added |
|---|
comment:5 by , 10 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:9 by , 9 years ago
| Milestone: | 1.11.0 → 1.12.0 |
|---|
Milestone moved to 1.12.0 due to 1.11.0 already being released.
comment:10 by , 8 years ago
| Milestone: | 1.12.0 → Future |
|---|
The milestone of this ticket has been reassigned to "Future".
If you think the issue is still valid and relevant for you, please select milestone 1.13.0 for back-end, code generation and run-time issues, or 2.0.0 for front-end issues.
If you are aware that the problem is no longer present, please select the milestone corresponding to the version of OMC you used to check that, and set the status to "worksforme".
In both cases, a short informative comment would be welcome.

SVN r25207 fixes the FMI Cpp export to consistently using short model identifiers, like
M. This makes it work with the Cpp runtime.Shouldn't the Cpp runtime be changed to using long model identifiers though, like
A_B_M?Basically some calls to
need to be replaced with
Or should
identOfPathbe used and let it return long model identifiers?