TApplencourt / metababel

YAML to Babeltrace 2 Component "compiler-compiler"
2 stars 2 forks source link

We should consider to use the cast_type defined in the matching model to render attributes #122

Open DonAurelio opened 11 months ago

DonAurelio commented 11 months ago

We rely on the cast_type defined in the model to render the variables and arguments in templates. @TApplencourt suggests enabling the user to change the :cast_type used for rendering with the one defined by the user in the matching model.

Model

:stream_classes:
...
  - :name: event_1
...
        :field_class:
          :type: integer_unsigned
          :cast_type: uint64_t

Matching model

:stream_classes:
...
  - :name: event_1
...
        :field_class:
          :type: integer_unsigned
          :cast_type: string

Some problems that may arise