addProperty
R2026bClass: 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.
Syntax
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:
DescriptionDetailedDescription
Publishers can modifying the values of the name,value
arguments.