Skip to main content
aboutsummaryrefslogblamecommitdiffstats
blob: 540bd60fa857c5939dc9761feae0954f7c61376a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                                                                                                                        
[module traceCout('http://www.eclipse.org/uml2/4.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