Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-2853

Add schema validation code to C generator

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.5.0
    • 3.6.0
    • Back End C-Generator
    • None

    Description

      Modify C generator to compare floating point and integer numbers with enumerations and ranges specified in DFDL schemas.  Test validation code with additional simple type root elements in simple.dfdl.xsd schema and additional TDML tests in simple_errors.tdml.

      Also allow C generator to compare hexBinary elements to values in enumerations since Daffodil does the same thing and C generator already compares hexBinary elements to values in fixed attributes.

      Allow C generator to ignore dfdl:assert expressions in DFDL schemas and generate code anyway instead of throwing an exception.
          
      Allow C generator to get schema version from DFDL schemas and put it into the generated C code to version the generated code as well.

      Attachments

        Activity

          People

            jinterrante John Interrante
            jinterrante John Interrante
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: