Integrations (PTC products, 3rd party products and code)
>
Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB)
>
SDL script for generating code
>
SDL script extensions for TDK
>
%hasstereotype operator statement (SDL script)
%hasstereotype operator statement (SDL script)
This topic applies to TDK SDL script extensions. For more information, see
Overview of SDL script extensions for TDK (SDL script)
.
SDL Script Extensions for TDK:
%for "Operation"
%if %hasstereotype "LogOperationEntry" %then
"printf (\"Entering " %custom "Name" "\\n\");\n"
%endif
%endfor
%string Stereo
%object MyObject
.....
%if %hasstereotype (Stereo, MyObject) %then
%m %blue "Stereotype " & Stereo & " is actually applied to " & MyObject:Name
%endif
Shorthand for testing whether a stereotype is present on the current object. %hasstereotype returns a logic value and accepts either a string argument (when testing %current), or a string/object pair.