Details
-
Task
-
Resolution: Done
-
Not Evaluated
-
5.12.0
-
None
Description
Storing the annotation files in a JSON file gives the simulation code the advantage to use these values at runtime and not hardcode it as it is done right now. This makes it possible to exchange the data at runtime when needed. E.g. redefine min/max for some properties, change default values, or provide a complete new list of radio stations using a JSON file would be possible.
- Change the autogenerator to write the annoations in a JSON file and embed it in a QRC
- Add functions for reading this JSON including a way to overwrite on runtime to the C++ classes
- Add more support functions to the C++ classes, e.g. generic read functions for the JSON data ? reusable functions to check for min/max of a property and give a uniform error in case the values are out of range.
Attachments
For Gerrit Dashboard: AUTOSUITE-629 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
243806,3 | Refactor the simulation_backend for zoned interfaces | dev | qt/qtivi | Status: MERGED | +2 | 0 |
243807,4 | Add a way to load and parse the data to the QIviSimulationEngine | dev | qt/qtivi | Status: MERGED | +2 | 0 |
243808,2 | ivigenerator: Add a simulation_data.json for the backend_simulator template | dev | qt/qtivi | Status: MERGED | +2 | 0 |
243809,2 | ivigenerator: Autogenerate QML simulation files | dev | qt/qtivi | Status: MERGED | +2 | 0 |