Hooks
#
- class ansys.scade.wux.hooks.Hooks#
Implements the C/C++ Simulation Hooks (
WUX2_HOOKS
) extension.Refer to Wrapper for its usage.
Refer to Generation Module in the User Documentation, section 3/ Code Integration Toolbox/Declaring Code Generator Extension.
Overview#
Declare the generation service GoWrapper. |
Import detail#
from ansys.scade.wux.hooks import Hooks
Method detail#
- Hooks.generate(target_dir: str, project: scade.model.project.stdproject.Project, configuration: scade.model.project.stdproject.Configuration)#
Generate the code for this generation service.
Refer to Generation Service in section 3 of the SCADE Python API Guide in the SCADE Suite documentation.
- Parameters:
- target_dir
str
Target directory for the code generation.
- project
Project
Input SCADE Suite project.
- configuration
configuration
SCADE Suite configuration selected for the code generation.
- target_dir
- classmethod Hooks.get_services()#
Declare the generation service GoWrapper.
- Hooks.init(target_dir: str, project: scade.model.project.stdproject.Project, configuration: scade.model.project.stdproject.Configuration)#
Declare the required generation services and the execution order.
Refer to Generation Service in section 3 of the SCADE Python API Guide in the SCADE Suite documentation.
- Parameters:
- target_dir
str
Target directory for the code generation.
- project
Project
Input SCADE Suite project.
- configuration
configuration
SCADE Suite configuration selected for the code generation.
- target_dir