Contenido principal

addProperty

R2026b

Class: clibgen.ClassDefinition
Namespace: clibgen

(Not recommended) Add property to C++ class definition

addProperty is not recommended. For more information on updating your code, see Version History.

Description

definition = addProperty(classDef,cppname,mltype) creates addProperty statements in the library definition files. MATLAB® adds a clibgen.PropertyDefinition object to class definition classDef, where cppname is the PropertyDefinition property CPPName.The function sets mltype to the MATLABType property.

definition = addProperty(classDef,cppname,mltype,shape) provides information about data dimensions of the property.

definition = addProperty(___,name,value) adds additional argument definition options and can include any of the input parameters in previous syntaxes. The name,value arguments set these PropertyDefinition properties:

  • Description

  • DetailedDescription

Publishers can modifying the values of the name,value arguments.

Version History

Introduced in R2019a

collapse all