3.1.2 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 component. However, #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
To view this graphic, your browser must support the SVG format. Either install a browser with native support, or install an appropriate plugin such as Adobe SVG Viewer.

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 reset function of MYCPPComponent.

Non-ConfidentialPDF file icon PDF version101092_0100_04_en
Copyright © 2014–2018 Arm Limited or its affiliates. All rights reserved.