getNamespace

Class: RTW.ModelCPPClass
Package: RTW

Get namespace from model-specific C++ class interface

Syntax

nsName = getNamespace(obj)

Description

nsName = getNamespace(obj) gets the namespace of the class described by the specified model-specific C++ class interface.

Input Arguments

objHandle to a model-specific C++ class interface control object, such as a handle previously returned by obj = RTW.getClassInterfaceSpecification (modelName).

Output Arguments

nsNameA character vector specifying the namespace of the class described by the specified model-specific C++ class interface.

Alternatives

To view the model namespace in the Simulink® Configuration Parameters graphical user interface, go to the Interface pane and click the Configure C++ Class Interface button. This button launches the Configure C++ class interface dialog box, which displays the model class name and namespace and allows you to display and configure the step method for your model class. For more information, see Configure Step Method for Your Model Class.