staruml / staruml-cpp

C++ extension for StarUML
MIT License
173 stars 66 forks source link

Suggestion: add reference & on inout and out direction for parameters #15

Closed R2RT closed 8 years ago

R2RT commented 8 years ago

Title ;) And if it's possible, out could be marked as /* [OUT] */ in declaration.

Eg. foo(out x:int, inout y:double, inout data:byte[]) turns to: void foo(/ [OUT] */ int& x, double& y, std::vector& data);

R2RT commented 8 years ago

After all, I've implemented it by myself. Can't push it to repo, so here is file: CppCodeGenerator.zip

niklauslee commented 8 years ago

Thank you for your suggestion and contribution. But we don't know this feature will be liked by the most of users. We want to wait to merge this feature until there is enough agreements from the users. And, please use pull-request if you want to contribute to this project. You can find more information about pull-request at https://help.github.com/articles/using-pull-requests/.