Main Content

addProperty

Class: clibgen.ClassDefinition
Namespace: clibgen

Add property to C++ class definition

Syntax

definition = addProperty(classDef,cppname,mltype,name,value)

Description

definition = addProperty(classDef,cppname,mltype,name,value) adds a clibgen.PropertyDefinition object to class definition classDef, where cppname is the PropertyDefinition property CPPName.The function sets mltype to the MATLABType property. The name,value arguments set these PropertyDefinition properties:

MATLAB® creates addProperty statements in the library definition files. Publishers can modifying the values of the name,value arguments. For more information, see Publish Help Text for MATLAB Interface to C++ Library and Define MATLAB Interface for C++ Library.

Version History

Introduced in R2019a