| |||
| Home > Communication with C++ Code > Calling LISA+ behaviors from C++ code > Importing models with callbacks | |||
Callbacks provide a method that allows your C++ object to call LISA+ behaviors. Two conditions must be fulfilled in order for callbacks to work:
Your LISA+ object must implement the necessary callback functions,
through the getAbstractInterface() function.
See getAbstractInterface().
The address of the LISA+ object must be passed to the C++ object, using a C++ header file. See Abstract interface header file.
A representation of the relationship between the callback function, C++ header file and LISA+ source is shown in Figure 3.4.