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.
Figure 3-1 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
the MyCPPComponent model in the
includes section. To access the C++ object, use
pointers. A pointer,
*mycomp, gives access to the
function of MYCPPComponent.