Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-107005

Share filters between templates in ifcodegen

    XMLWordPrintable

Details

    • All
    • f79cdbbaa6 (qt/qtinterfaceframework/dev) f79cdbbaa6 (qt/tqtc-qtinterfaceframework/dev)

    Description

      It would be good to share the same filter code and filter.py between different templates when using ifcodegen. There are 2 main use-cases for this in QtAA:

      • We create one single way to describe car interfaces, but we want to make different implementations for the backends. In this case, filters are always used to extract the same data from ymls, so putting the same filters.py everywhere gets unmaintainable after a while. Example this and this
      • Similarly, when we make tests for API generator functions, the test will have a custom template part to test functionality, but it needs the original filters above. These tests would run best with the original filters.py above.

      Attachments

        For Gerrit Dashboard: QTBUG-107005
        # Subject Branch Project Status CR V

        Activity

          People

            Unassigned Unassigned
            zogera Zoltán Gera
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes