addProperty
Class: clibgen.ClassDefinition
Namespace: clibgen
Add property to C++ class definition
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:
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