|Re: Map in model and code generation [message #1816997 is a reply to message #1816990]
||Wed, 13 November 2019 14:32
| Stephen Blackwell
Registered: March 2014
If I'm understanding you correctly, it looks like we are both trying to do something similar. See my question here https://www.eclipse.org/forums/index.php/t/1101227/
If you replace my "GenericArray" from my example with "map" and add two template parameters to the template signature, say S and T, then replace "AdddressArray" with you own type, myTemplateType, bind std::string to S and std::function<void(my_type)> to T in the template binding connection, and create a variable "myTemplateType myVar", then when you generate the code you should get a typedef myTemplateType map<std::string, std::function<void(my_type)>
At least that's how I think it works but I'm having difficulties adding the template parameters.
Let me know if you make any progress.
Powered by FUDForum
. Page generated in 0.01622 seconds