clibgen.LibraryDefinition.addEnumeration - Add enumeration to library definition - MATLAB (original) (raw)
Main Content
Class: clibgen.LibraryDefinition
Namespace: clibgen
Add enumeration to library definition
Syntax
enum = addEnumeration(libDef,cppname,mltype,enumerants,mlname,value)
Description
enum = addEnumeration(libDef,cppname,mltype,enumerants,mlname,value)
adds a clibgen.EnumDefinition object to the library definition,with theseEnumDefinition
properties:
- CPPName set to
cppname
- MATLABType set to
mltype
- MATLABName set to
mlname
- Entries set to
enumerants
The name,value
arguments optionally set theseEnumDefinition
properties:
MATLABĀ® creates addClass
statements in the library definition files. Publishers can modifying the values of the name,value
arguments. For more information, see Define MATLAB Interface for C++ Library. For information about using Description
and DetailedDescription
, seePublish Help Text for MATLAB Interface to C++ Library.
Version History
Introduced in R2019a