Main Content

addEnumeration

Class: clibgen.LibraryDefinition
Package: 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 these EnumDefinition properties:

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. For information about using Description and DetailedDescription, see Publish Help Text for MATLAB Interface to C++ Library.

Introduced in R2019a