Class: clibgen.ClassDefinition
Package: clibgen
Add property to C++ class definition
definition = addProperty(classDef,cppname,mltype,name,value)
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 .mlx
library definition files. Publishers can modifying the values of the
name,value
arguments. For more information, see Define MATLAB Interface for C++ Library.