updated C++ code generation to use new Action method indication style