Anonymous | Login | Signup for a new account | 2024-03-28 12:51 UTC |
Main | My View | View Issues | Change Log | Roadmap |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0000810 | Taste | [All Projects] ASN.1 Compiler v4 | public | 2018-10-22 07:48 | 2018-11-06 10:06 | ||||
Reporter | maxime | ||||||||
Assigned To | gmamais | ||||||||
Priority | normal | Severity | feature | Reproducibility | have not tried | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Summary | 0000810: 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 | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
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 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 |