Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000810Taste[All Projects] ASN.1 Compiler v4public2018-10-22 07:482018-11-06 10:06
Reportermaxime 
Assigned Togmamais 
PrioritynormalSeverityfeatureReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Summary0000810:

Miss presence field in generic XML ast

Description

When a field is marked optional but a subtype forces it to be either PRESENT or ABSENT using e.g. WITH COMPONENTS (..., field PRESENT), this information is missing from the generic STG backends (xml.stg and python.stg).

I suggest to add the information in the STG backend (bAlwaysPresent / bAlwaysAbsent)

Thanks

TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0003483)
gmamais (developer)
2018-10-28 14:17

Resolved in version 4.1.0.1f (I don't know what f means, Thanassis put it there and I assume he has good reasons for it).

Please see files

mantis/0000810/a.asn1
mantis/0000810/xml.stg
mantis/0000810/out2.xml

which demonstrate this functionality.

out2.xml is generated by the following command

Asn1f4 -customStg xml.stg:out2.xml a.asn1

Please note that besides macro SequenceChild (which was expanded by adding the two new parameters bAlwaysPresent, bAlwaysAbsent), macros RefTypeMinMax and RefType were also affected. I had to add a new parameter (soResolvedType) which the resolution of the reference type. Only in the scope of this "resolved" type, you will see the expected values bAlwaysPresent, bAlwaysAbsent.

(0003484)
maxime (administrator)
2018-10-28 14:25

Thanks, we'll use them in DMT and in TASTE autogenerated GUIs.

(0003486)
maxime (administrator)
2018-11-06 10:06

Closing


- Issue History
Date Modified Username Field Change
2018-10-22 07:48 maxime New Issue
2018-10-22 07:48 maxime Status

new => assigned

2018-10-22 07:48 maxime Assigned To

=> gmamais

2018-10-28 14:17 gmamais Note Added: 0003483
2018-10-28 14:17 gmamais Status

assigned => resolved

2018-10-28 14:17 gmamais Resolution

open => fixed

2018-10-28 14:25 maxime Note Added: 0003484
2018-11-06 10:06 maxime Note Added: 0003486
2018-11-06 10:06 maxime Status

resolved => closed



Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker