Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
30a63a0a
Commit
30a63a0a
authored
Mar 01, 2019
by
Maxime Perrotin
Browse files
Complete first support of newtypes (arrays)
parent
c6dca099
Changes
2
Hide whitespace changes
Inline
Side-by-side
opengeode/AdaGenerator.py
View file @
30a63a0a
...
...
@@ -482,7 +482,8 @@ LD_LIBRARY_PATH=../lib:. opengeode-simulator
asn1_modules
=
'-- No ASN.1 data types are used in this model'
include_custom_types
=
u
'''with {process_name}_newtypes;
use {process_name}_newtypes;'''
if
process
.
user_defined_types
else
u
''
use {process_name}_newtypes;'''
.
format
(
process_name
=
process_name
)
\
if
process
.
user_defined_types
else
u
''
taste_template
=
[
u
'''
\
-- This file was generated automatically: DO NOT MODIFY IT !
...
...
opengeode/opengeode.py
View file @
30a63a0a
...
...
@@ -1982,6 +1982,7 @@ end {pr};'''.format(pr=prj_name,
template_gpr_asn1
=
'''project DataView_{lang} is
for Languages use ("ASN1");
for Source_Dirs use (".");
for Source_Files use ("__dataview_uniq.asn");
for Object_Dir use "code";
package Naming is
...
...
@@ -1997,6 +1998,7 @@ end DataView_{lang};'''
# Template for the Makefile
template_makefile
=
'''all:
\t
cat *.asn > __dataview_uniq.asn
\t
gprbuild -p -P {pr}.gpr # generate Ada code from the SDL and ASN.1 models
\t
gprbuild -p -P {pr}_ada.gpr # build the Ada code
clean:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment