Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • T titan.core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 114
    • Issues 114
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Eclipse ProjectsEclipse Projects
  • Eclipse Titan
  • titan.core
  • Merge requests
  • !140

PresenceConstraints: generate code for the value validation type handlers

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Eclipse Webmaster requested to merge github/fork/viktorTarasov/PR_PresenceConstraints into master Sep 24, 2018
  • Overview 1
  • Commits 3
  • Changes 19

Created by: viktorTarasov

General idea is to extend the typed value descriptors (TTCN_Typedescriptor_t) with the type specific validator function.

The value validator is called at the begining of 'XXX_encode()' function and at the end of 'XXX_decode()'.

The core of this validator is generated from the recursive analyse of the type's sub-type asn-constraints.

Currently the main attention was for the constraint chains at the end of which there is a NamedConstraint with the valid 'Presence' value ('ABSENT' and 'PRESENT').

Tested with the EtsiTs103097Module, IEEE1609dot2 and IEEE1609dot2BaseTypes ASN1 schemas.

In these shemas constraint chains contains the following constraint types:
ContainedSubtypeConstraint SetOperationConstraint SingleInnerTypeConstraint NamedConstraint MultipleInnerTypeConstraint UnparsedMultipleInnerTypeConstraint

Still needs the exhaustive functional tests. I will do it using the test cases based onto the ASN1 sources listed above. But before I would like to understand if, with this proposed implementation I'm moving in the right direction.

Regards,

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/viktorTarasov/PR_PresenceConstraints

Copyright © Eclipse Foundation, Inc. All Rights Reserved.     Privacy Policy | Terms of Use | Copyright Agent