Contenuto principale

addEnumeration

R2026b

Class: clibgen.LibraryDefinition
Namespace: clibgen

(Not recommended) Add enumeration to library definition

addEnumeration is not recommended. For more information on updating your code, see Version History.

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:

  • 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:

  • Description

  • DetailedDescription

MATLAB® creates addClass statements in the library definition files. Publishers can modifying the values of the name,value arguments.

Version History

Introduced in R2019a

collapse all