Main Content

addEnumeration

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 these EnumDefinition properties:

The name,value arguments optionally set these EnumDefinition 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, see Publish Help Text for MATLAB Interface to C++ Library.

Version History

Introduced in R2019a