Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: fbbdcf1012e18c5ae36d796cde211723af07ca45 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[module traceCout('http://www.eclipse.org/uml2/5.0.0/UML')]

[import org::eclipse::papyrus::qompass::designer::core::acceleo::UMLTool/]
[import org::eclipse::papyrus::qompass::designer::core::acceleo::utils_cpp/]

[template public traceOp(operation: Operation)]
// declare operation & use directly. Problem: declaration can not be within the scope of an operation
updateTimestamp ();
cout "enter operation: " << [operation.name/] << " at " << timestamp.ticks() << "  parameters: " <<
    [for (parameter : Parameter | operation.ownedParameter)] "[parameter.name/] (of type [parameter.type.name/]): " << [parameter.name/] [/for] << endl;
)
[if not (type = null)] [type.cppType()/] ret  = [/if]rconn->[operation.cppCall()/];
[if not (type = null)] return ret; [/if]
[/template]

Back to the top