Changes required to your source code
To make C++ class declarations and definitions visible in LISA+ behaviors, add
#include statements, referencing the C++ header files, to the
includes section of the component.
Everything defined in these header files is visible inside the bodies of all behaviors of the
#defines defined in these headers are not visible outside
of the behavior bodies and cannot affect conditional compilation of LISA+ code.
Relationship between LISA+ and C++ source
The figure shows an example where the LISA+ code for MyComponent imports a C++ component,
MyCPPComponent. The LISA+ wrapper code references the C++ header for
MyCPPComponent model in the
*mycomp, gives access to the
function of MYCPPComponent.