Open fajansen opened 5 years ago
@fajansen, can you provide some examples?
@t-sommer You mean usecases?
Some examples of variables you want to rename, e.g.
a
-> my_a
a[1]
-> a[0]
...
Your examples are good, I have the following additions:
CAN_IDENTIFIER_FRAME_NAME_SIGNAL_NAME
-> CAN_IDENTIFIER::FRAME_NAME::SIGNAL_NAME
Verylongnamethatwillbetruncatedbyth78
-> Verylongnamethatwillbetruncatedbythecodegenerationprocessduetovariablenamelengthrestrictions
model_path_block_name_parameter_name
-> model_path.block_name.parameter_name
@fajansen, is this still relevant?
Currently the ports and parameters in the modelDescription.xml are named after the c-representation of the port/parameter name.
It would be useful to have a possibility to change the names in the modelDescription, e.g. to order them in a structure/tree for orientation, use characters not allowed in C (e.g. ':'), or fix the indexing of arrays (0-based vs. 1-based).
I see two approaches to this: