Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
dmt
Commits
01d3ade1
Commit
01d3ade1
authored
Sep 19, 2019
by
Thanassis Tsiodras
Browse files
Avoid emitting all fields that depend on actual ASN1SCC compilation.
parent
fecfdb2d
Changes
2
Hide whitespace changes
Inline
Side-by-side
dmt/asn2aadlPlus.py
View file @
01d3ade1
...
...
@@ -420,9 +420,10 @@ end Stream_Element_Buffer;
base
=
os
.
path
.
splitext
(
os
.
path
.
basename
(
possibleACN
))[
0
]
fname
=
base
.
replace
(
"-"
,
"_"
)
o
.
write
(
' %sEncodingDefinitionFile => classifier(DataView::ACN_%s);
\n
'
%
(
prefix2
,
fname
))
o
.
write
(
' %sAda_Package_Name => "%s";
\n
'
%
(
prefix
,
g_AdaPackageNameOfType
[
asnTypename
]))
if
bAADLv2
:
o
.
write
(
' Deployment::ASN1_Module_Name => "%s";
\n
'
%
g_AdaPackageNameOfType
[
asnTypename
].
replace
(
'_'
,
'-'
))
if
not
bFast
:
o
.
write
(
' %sAda_Package_Name => "%s";
\n
'
%
(
prefix
,
g_AdaPackageNameOfType
[
asnTypename
]))
if
bAADLv2
:
o
.
write
(
' Deployment::ASN1_Module_Name => "%s";
\n
'
%
g_AdaPackageNameOfType
[
asnTypename
].
replace
(
'_'
,
'-'
))
if
os
.
getenv
(
'UPD'
)
is
None
:
o
.
write
(
' Source_Language => (ASN1);
\n
'
)
if
not
bFast
:
...
...
@@ -472,8 +473,9 @@ end Stream_Element_Buffer;
o
.
write
(
' -- Buffer to hold a marshalled data of type '
+
cleanName
+
"
\n
"
)
o
.
write
(
'PROPERTIES
\n
'
)
o
.
write
(
' Data_Model::Data_Representation => array;
\n
'
)
o
.
write
(
' Data_Model::Dimension => (%d); -- Size of the buffer
\n
'
%
le_size_rounded
)
o
.
write
(
' Source_Data_Size => %d Bytes; -- Size of the buffer in bytes
\n
'
%
le_size_rounded
)
if
not
bFast
:
o
.
write
(
' Data_Model::Dimension => (%d); -- Size of the buffer
\n
'
%
le_size_rounded
)
o
.
write
(
' Source_Data_Size => %d Bytes; -- Size of the buffer in bytes
\n
'
%
le_size_rounded
)
if
bAADLv2
:
o
.
write
(
' Data_Model::Base_Type => (classifier (DataView::Stream_Element_Buffer));
\n
'
)
else
:
...
...
@@ -490,8 +492,9 @@ end Stream_Element_Buffer;
o
.
write
(
' Length : data Base_Types::%s;
\n
'
%
(
bAADLv2
and
"Unsigned_32"
or
"uint32"
))
o
.
write
(
'PROPERTIES
\n
'
)
o
.
write
(
' Data_Model::Data_Representation => Struct;
\n
'
)
o
.
write
(
' Source_Data_Size => %d Bytes; -- Size of the buffer in bytes
\n
'
%
(
le_size_rounded
+
16
))
if
not
bFast
:
o
.
write
(
' Source_Data_Size => %d Bytes; -- Size of the buffer in bytes
\n
'
%
(
le_size_rounded
+
16
))
o
.
write
(
'END '
+
cleanName
+
'_Buffer.impl;
\n\n
'
)
# Generate a SYSTEM in the DataView, otherwise Ocarina cannot parse it
...
...
setup.py
View file @
01d3ade1
...
...
@@ -11,7 +11,7 @@ from setuptools import setup, find_packages
setup
(
name
=
'dmt'
,
version
=
"2.1.4
2
"
,
version
=
"2.1.4
3
"
,
packages
=
find_packages
(),
author
=
'Thanassis Tsiodras'
,
author_email
=
'Thanassis.Tsiodras@esa.int'
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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