Class: clibgen.LibraryDefinition
Package: clibgen
Add enumeration to library definition
enum = addEnumeration(libDef,cppname,mltype,enumerants,mlname,value)
enum = addEnumeration(libDef,cppname,mltype,enumerants,mlname,value)
adds a clibgen.EnumDefinition
object to the library definition,with these
EnumDefinition
properties:
CPPName set
to cppname
MATLABType
set to mltype
MATLABName
set to mlname
Entries set
to enumerants
The name,value
arguments optionally set these
EnumDefinition
properties:
MATLAB® creates addClass
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.