I am trying to add code to entry actions in states and actions in transitions in a model programatically through the Java API. This alone works fine, but what I would really like to do is add the code only to the generated .cpp files and not to the model. To clarify, the code should only be visible in the generated files and not the model.
Something like this:
cout << "At state 1";
If you need more info just let me know and I will try to provide it.