Mixing template language and C++ code (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:
%cppdep "MyInclude.h" $ Includes MyInclude.h in the C++ generator code
%string MyVar
%string AnotherVar
%string Result
MyVar = %custom "C++ Text"
AnotherVar = "{"
%cpp
const char* ThePoint = strstr (MyVar.getStringValue (), AnotherVar.getStringValue ());
Result = ThePoint
%endcpp
The %cpp and %endcpp keywords allow to introduce sections of C++ code in the Generator Model sdl files.
If you need to include any file in your C++ code, use the %cppdep keyword.
Working with C++ requires familiarity with the supplied runtime libraries. Libraries are installed with TDK under the <Modeler directory>\ItsShadow\TdkSources. Please contact customer support for further details.